analysispreservation.cern.ch icon indicating copy to clipboard operation
analysispreservation.cern.ch copied to clipboard

ui: admin - add customise option for "x-cap-" fields

Open pamfilos opened this issue 2 years ago • 0 comments

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

pamfilos avatar Mar 01 '23 14:03 pamfilos