Validate readOnly(/readwrite)?

12 views
Skip to first unread message

Edward H.

unread,
May 13, 2018, 7:39:35 AM5/13/18
to jsonschema - An implementation of JSON Schema for Python
Hello,

I'm trying to create a schema that has both readwrite and readonly entries.
I understood that I can use the "readOnly" property to mark an entry as read-only.

But how can I check programatically the entry or perhaps just validate that the given data instance confirms to RW-only or RW+RO?
The only thing I manage to think about so far is to have two schema/s, but that is unfriendly (to say the least).

Thanks,
Edy.
Reply all
Reply to author
Forward
0 new messages