Open sierra-moxon opened 1 year ago
I think the linkml metamodel could be better specified, but they are essentially the same
however, since 1.3 it is better to map json schema composition (https://json-schema.org/understanding-json-schema/reference/combining.html) to linkml boolean operators https://linkml.io/linkml/faq/modeling.html#how-do-i-do-the-equivalent-of-json-schema-composition
So is this a bug, or does the documentation need improving, or what?
Running schema-automator import-json-schema.
JSONSchema has a "oneOf" definition:
schemauto -import-json-schema vrs.json
results in:https://linkml.io/linkml-model/docs/union_of/
indicates that the domain element consists exactly of the members of the element in the range.
I think JSONSchema oneOf means "if the data matches any one of these independent schemas, then allow it, else fail" in terms of validation. The LinkML definition of
union_of
implies that the data must match all of the members in the array. Am I reading this correctly?