Say I have two json-schemas - is it possible (in python or anywhere else) to determine if one is a subset of another?
I am looking for a function on two json-schemas that will return true if and only if every instance accepted by the first json-schema is also accepted by the second.
For a super simple example, suppose my schemas are
int_schema = {'type': 'integer'}
num_schema = {'type': 'number'}
Then I would have
subset(int_schema, num_schema) = True
subset(num_schema, int_schema) = False
Don't really care about this being python, I am more trying to find out if json-schema supports this.