violates that the value in minimum is supposed to be a number.
Please consider implementing my data vocabulary instead. It is fully compliant with drafts 6 and later. It's also more powerful in that it can reference data from the instance, from the schema, and from other external sources.
Edit I thought that it might be good to include what this would look like with data.
Your implementation of the
$data
keyword results in invalid schemas (they fail validation against the meta-schema).For example
violates that the value in
minimum
is supposed to be a number.Please consider implementing my
data
vocabulary instead. It is fully compliant with drafts 6 and later. It's also more powerful in that it can reference data from the instance, from the schema, and from other external sources.Edit I thought that it might be good to include what this would look like with
data
.This schema does pass meta-schema validation.
To reference other data sources, use:
#/minValue
, like what you might see in$ref
)https://example.com/data#/my/pointer
)