ucsd-ccbb / qiimp

Web application to collect metadata specifications from an experimenter and produce metadata input files with appropriate constraints
3 stars 7 forks source link

Package roll-up not working correctly when an anyof is being replaced with a strict allowed #92

Closed AmandaBirmingham closed 6 years ago

AmandaBirmingham commented 6 years ago

Because the roll-up replaces or adds keys found at the top level, if the top level contains something like anyof:

... and you try to replace it with, say, allowed:

... you end up with allowed:

Basically, the generic roll-up approach can't work for anyof cases (either as the parent or the child in the roll-up inheritance, I think), and so those will need special-case logic ... yick.