Open javagl opened 2 years ago
This still appears to be an issue.
There haven't been any actual changes since this issue was reported. I tried to apply wetzel to another project, and stumbled over this and several other issues, and created a set of smaller changes to address them, but eventually, it did not appear to make sense to try and tackle these individually, so I created a branch with a larger refactoring at https://github.com/CesiumGS/wetzel/tree/generate-3dtiles (although I don't know for sure whether this really is an 'improvement', or just a 'change' ...)
I'll have a closer look at https://github.com/CesiumGS/wetzel/issues/81 and try to respond there a bit later today.
Here is an example schema that refers to a type
exampleReferenceDefinition
that is defined in another file:The
definitions.schema.json
looks as follows:This causes wezel to bail out:
Roughly: The
definitions
are not properly transported through the recursive calls ofreplaceRef
.My gut feeling is that this is related to https://github.com/CesiumGS/wetzel/issues/56 . More generally: The
replaceRef
approach of trying to completely "inline" the references may not be the most sustainable here. It does/will also cause trouble when/ifallOf
is replaced with$ref
.I've spent a few hours debugging the surroundings of
replaceRef
. Maybe I'll try to refactor this in an attempt to kill a few bugs with one stone, but it's hard to make promises here...