Open redmitry opened 2 years ago
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.
Now, we have to revise the whole schema in order to introduce these hints
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.