mirror of
https://github.com/niusmallnan/steve.git
synced 2025-09-25 12:19:39 +00:00
Don't send access details in the schema as it's too large
This commit is contained in:
@@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user