inveniosoftware / invenio-cli

CLI module for Invenio
https://invenio-cli.readthedocs.io
MIT License
10 stars 43 forks source link

customize jsonschemas when using invenio-cli #132

Closed mzaglia closed 4 years ago

mzaglia commented 4 years ago

Hi, I'm trying to add custom jsonschemas using invenio-cli. Invenio-jsonschemas says I need to make changes to setup.py but there is no setup.py in the generated files.

fenekku commented 4 years ago

Hey @mzaglia,

There is currently 2 ways of dealing with jsonschemas:

1- you can extend the invenio-rdm-records' schema. See info here: https://inveniordm.docs.cern.ch/develop/make_it_your_own/#extend-the-metadata-model . 2- you can create an extension (see info here: https://inveniordm.docs.cern.ch/extensions/custom/ ) and in that extension's setup.py you can plug the changes.

Bear in mind that invenio-cli and the RDM ecosystem is evloving. If you want to lay out what changes / goals you had in mind, it might help us make sure this is easy to do.

Thanks!

fenekku commented 4 years ago

Will close this at the end of the month if the issue doesn't see activity.

lnielsen commented 4 years ago

@mzaglia What is the goal of changing the JSON Schema? You should not have to change the JSON schema for InvenioRDM, there's a different way of specifying custom fields.

fenekku commented 4 years ago

Closing due to inactivity.