mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-17 16:11:15 +00:00
Add format to columns
This commit is contained in:
parent
583309b969
commit
f2c0706220
@ -17,11 +17,13 @@ func (d *DefaultColumns) ModifySchema(schema *types.Schema, schemas *types.Schem
|
||||
Name: "Name",
|
||||
Field: "metadata.name",
|
||||
Type: "string",
|
||||
Format: "name",
|
||||
},
|
||||
{
|
||||
Name: "Created",
|
||||
Field: "metadata.creationTimestamp",
|
||||
Type: "date",
|
||||
Type: "string",
|
||||
Format: "date",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ func forVersion(group, version, resource string, schemas map[string]*types.Schem
|
||||
Name: col.Name,
|
||||
Field: col.JSONPath,
|
||||
Type: col.Type,
|
||||
Format: col.Format,
|
||||
})
|
||||
}
|
||||
if len(versionColumns) == 0 {
|
||||
|
@ -10,6 +10,7 @@ type Column struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
Field string `json:"field,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
Format string `json:"format,omitempty"`
|
||||
}
|
||||
|
||||
type Table struct {
|
||||
|
Loading…
Reference in New Issue
Block a user