validate
validate copied to clipboard
validate passes geom:kernel_type when pds:kernel_type is required
Checked for duplicates
No - I haven't checked
🐛 Describe the bug
This is a by-product of testing IM#797. lddtool now creates a GEOM dict that has
<xs:complexType name="SPICE_Kernel_Identification">
<xs:sequence>
<xs:element name="kernel_type" type="pds:kernel_type" minOccurs="0" maxOccurs="1"> </xs:element>
Notice pds:kernel_type, not geom:kernel_type. Validate passes the attached u5.xml despite:
<geom:SPICE_Kernel_Identification>
<geom:kernel_type>SPK</geom:kernel_type>
🕵️ Expected behavior
I expected validate to WARN or ERR for input file u5.xml's geom:kernel_type
📜 To Reproduce
- % validate -x PDS4_PDS_1M00.xsd PDS4_GEOM_1M00_1970.xsd -S PDS4_PDS_1M00.sch PDS4_GEOM_1M00_1970.sch -t u5.xml PDS Validate Tool Report Configuration: Version 3.6.0-SNAPSHOT Date 2024-10-09T17:39:33Z Parameters: Targets [file:/Users/rchen/Desktop/797/u5.xml] User Specified Schemas [file:/Users/rchen/Desktop/797/PDS4_PDS_1M00.xsd, file:/Users/rchen/Desktop/797/PDS4_GEOM_1M00_1970.xsd] User Specified Schematrons [file:/Users/rchen/Desktop/797/PDS4_PDS_1M00.sch, file:/Users/rchen/Desktop/797/PDS4_GEOM_1M00_1970.sch] Severity Level WARNING Recurse Directories true File Filters Used [*.xml, *.XML] Data Content Validation on Product Level Validation on Max Errors 100000 Registered Contexts File /Users/rchen/PDS4tools/validate/resources/registered_context_products.json Product Level Validation Results PASS: file:/Users/rchen/Desktop/797/u5.xml 1 product validation(s) completed Summary: 1 product(s) 0 error(s) 0 warning(s) Product Validation Summary: 1 product(s) passed 0 product(s) failed 0 product(s) skipped 1 product(s) total Referential Integrity Check Summary: 0 check(s) passed 0 check(s) failed 0 check(s) skipped 0 check(s) total End of Report Completed execution in 2151 ms ...
🖥 Environment Info
- Version of this software [e.g. vX.Y.Z]
- Operating System: [e.g. MacOSX with Docker Desktop vX.Y] ...
📚 Version of Software Used
No response
🩺 Test Data / Additional context
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
🎉 Integration & Test
No response