We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For removing referenced objects it would be nice to define the action for the dependent objects (like in SQL)
"on_delete_hint": ["RESTRICT", "CASCADE", "DELETE"].
"foreign_keys": [ { "schema_id": "Reference", "members": [ "." ], "on_delete_hint": { "type": "string", "enum": ["RESTRICT", "CASCADE", "DELETE"], "default": "RESTRICT" } } ]
Where RESTRICS - forbid referred object removal, CASCADE - remove referral object and DELETE set the FK (string) null.
The text was updated successfully, but these errors were encountered:
In order to fulfill this issue it is needed first to properly document the syntax at https://github.com/inab/python-extended-json-schema-validator , and later implement it at that repo and https://gitlab.bsc.es/inb/elixir/json-schema-validator implementations.
So, I'm opening the corresponding issues.
Sorry, something went wrong.
Now, we have to revise the whole schema in order to introduce these hints
No branches or pull requests
For removing referenced objects it would be nice to define the action for the dependent objects (like in SQL)
"on_delete_hint": ["RESTRICT", "CASCADE", "DELETE"].
Where RESTRICS - forbid referred object removal, CASCADE - remove referral object and DELETE set the FK (string) null.
The text was updated successfully, but these errors were encountered: