Metadata Injector for PDS Labels (MILabel) provides a command-line interface for generating PDS4 Labels using a user provided PDS4 XML template and input (source) data products.
The current support for JSON metadata input works only for items at the top level of the JSON. Substructures like arrays, maps, etc don't work consistently. I have a use case (for CLPS-SCALPSS) that has a rather rich JSON structure that is inaccessible in the current implementation.
📖 Additional Details
No response
Acceptance Criteria
GivenWhen I performThen I expect
⚙️ Engineering Details
Current code tries to shoehorn the JSON parse tree into PDS3Label structure to make it look more like PDS3. However, this is incomplete and inconsistent, and it turns out that just providing the parse tree directly to the JSON engine works much better.
Checked for duplicates
No - I haven't checked
🧑🔬 User Persona(s)
Template developer
💪 Motivation
The current support for JSON metadata input works only for items at the top level of the JSON. Substructures like arrays, maps, etc don't work consistently. I have a use case (for CLPS-SCALPSS) that has a rather rich JSON structure that is inaccessible in the current implementation.
📖 Additional Details
No response
Acceptance Criteria
Given When I perform Then I expect
⚙️ Engineering Details
Current code tries to shoehorn the JSON parse tree into PDS3Label structure to make it look more like PDS3. However, this is incomplete and inconsistent, and it turns out that just providing the parse tree directly to the JSON engine works much better.
🎉 I&T
See PR for test