mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-17 16:11:15 +00:00
Don't send access details in the schema as it's too large
This commit is contained in:
parent
7395e5b8c4
commit
2daf0ce8ee
@ -18,10 +18,12 @@ func NewSchemaStore() types.Store {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func toAPIObject(schema *types.APISchema) types.APIObject {
|
func toAPIObject(schema *types.APISchema) types.APIObject {
|
||||||
|
s := schema.DeepCopy()
|
||||||
|
delete(s.Schema.Attributes, "access")
|
||||||
return types.APIObject{
|
return types.APIObject{
|
||||||
Type: "schema",
|
Type: "schema",
|
||||||
ID: schema.ID,
|
ID: schema.ID,
|
||||||
Object: schema,
|
Object: s,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user