Replies: 1 comment 3 replies
-
There are a lot of discussions around referencing data located elsewhere (in the instance, or elsewhere in the schema, or something else). Here's an old one: json-schema-org/json-schema-spec#51 Some libraries do support a {
"properties": {
"foo": {
"type": "number",
"minimum": { "$data": "/myMin" }
}
}
} This is supposed to fetch the value for I've written an extension spec that is compatible with JSON Schema by shuffling things around a bit. Instead of the above, you use: {
"properties": {
"foo": {
"type": "number",
"data": { "minimum": "/myMin" }
}
}
} In this case, Currently the only implementation is an extension of my JsonSchema.Net library. |
Beta Was this translation helpful? Give feedback.
-
I was wondering if you had considered a way to describe relationships between various items in different schemas, linking a key in one to the key in another. (I am new here so apologies in advance if this is a stupid question for whatever reason)... This would male it easier to connect to schemas together - say when the "name" in one schema is the same as the "name" key in another.
Something like this:
"relationship": { "$schema": "https://example.com/referred-to-schema", "field": "keyReferredToInSchema", "type": "strict" }
Thanks
Beta Was this translation helpful? Give feedback.
All reactions