analysispreservation.cern.ch
analysispreservation.cern.ch copied to clipboard
ui: admin - add customise option for "x-cap-" fields
Feature request
What is the expected behavior? We have special keys that can be added to the schema for custom validations/modification of the records. E.g:
{
'type': 'object',
'required': ['title'],
'properties': {
'title': {
'type': 'string'
},
'obj': {
'type': 'string',
'x-cap-permission': {
'users': ['[email protected]'],
'roles': ['[email protected]']
},
}
}
}
"title": {
"type": "string",
"x-cap-copy": {
"path": [
["initial", "short_title"]
]
}
},
What is motivation or use case for adding/changing the behavior?
How should this be implemented in your opinion? These custom keys are for all types of properties (objects, arrays, string, etc) Maybe add an "Advanced" section in the fields "Schema" tab