Closed acka47 closed 3 years ago
It looks like the problem is definitions
and/or oneOf
. The schema version where I only adjusted the context bit is working as expected, see https://skohub.io/editor/?schema=https://raw.githubusercontent.com/dini-ag-kim/lrmi-profile/ed3bf3196108cd48814d237e162c8062e44db15f/draft/schemas/schema.json
It looks like the problem is definitions and/or oneOf.
Yes, the top level oneOf
is the problem here. It isn't that trivial to properly support oneOf
different object types in the UI, and there is some merging of schemas going on in Builder that are most likely causing trouble here and that I won't be able to look into.
Alas, oneOf
is not necessary for your schema, it actually makes things more complicated than they should be. See https://github.com/dini-ag-kim/lrmi-profile/pull/20 for a fix.
With the PR at https://github.com/dini-ag-kim/lrmi-profile/pull/16, the context wasn't automatically embedded anymore although there still is a
default
set like this:I also added the
definitions
object in the schema andoneOf
in this PR. Maybe that is the problem.