✨ feat(schema): enhance API configuration schemas with new properties and validations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Updated collection.json to include upload defaults, audit logging, query limits, and more. - Enhanced collectionNavigation.json with viewHint configurations. - Added project-wide upload defaults and hook configurations in config.json. - Expanded field.json to support new field types, validations, and properties. - Improved fieldMeta.json with additional widget configurations and properties. - Updated hooks.json to include new bulk operation hooks and audit logging. - Enhanced imageFilter.json with additional image processing options. - Added timeout properties to job.json for better execution control. - Refined permissions.json to allow more granular control over HTTP method permissions and added filter and field visibility options.
This commit is contained in:
@@ -38,14 +38,85 @@
|
||||
"description": "permissions for http methods",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"get": { "type": "boolean" },
|
||||
"post": { "type": "boolean" },
|
||||
"put": { "type": "boolean" },
|
||||
"delete": { "type": "boolean" }
|
||||
"get": {
|
||||
"oneOf": [
|
||||
{ "type": "boolean" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": { "type": "boolean", "description": "Allow GET." }
|
||||
},
|
||||
"required": ["allow"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"oneOf": [
|
||||
{ "type": "boolean" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": { "type": "boolean", "description": "Allow single-document POST." },
|
||||
"bulk": { "type": "boolean", "description": "Allow bulk POST (JSON array body)." }
|
||||
},
|
||||
"required": ["allow"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"oneOf": [
|
||||
{ "type": "boolean" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": { "type": "boolean", "description": "Allow single-document PUT." },
|
||||
"bulk": { "type": "boolean", "description": "Allow bulk PUT (without ID)." }
|
||||
},
|
||||
"required": ["allow"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"oneOf": [
|
||||
{ "type": "boolean" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"allow": { "type": "boolean", "description": "Allow single-document DELETE." },
|
||||
"bulk": { "type": "boolean", "description": "Allow bulk DELETE (without ID)." }
|
||||
},
|
||||
"required": ["allow"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"validProjections": {
|
||||
"type": "array",
|
||||
"description": "list of projection names this permission set is allowed to use",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"filter": {
|
||||
"type": "object",
|
||||
"description": "MongoDB filter applied to all queries for this permission set",
|
||||
"additionalProperties": true
|
||||
},
|
||||
"readonlyFields": {
|
||||
"type": "array",
|
||||
"description": "fields that are read-only for this permission set",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"hiddenFields": {
|
||||
"type": "array",
|
||||
"description": "fields that are hidden for this permission set",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user