mirror of
https://github.com/niusmallnan/steve.git
synced 2025-07-15 15:21:40 +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 {
|
||||
s := schema.DeepCopy()
|
||||
delete(s.Schema.Attributes, "access")
|
||||
return types.APIObject{
|
||||
Type: "schema",
|
||||
ID: schema.ID,
|
||||
Object: schema,
|
||||
Object: s,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user