validate icon indicating copy to clipboard operation
validate copied to clipboard

validate configuration includes context product names that do not match the products

Open msbentley opened this issue 6 months ago • 5 comments

Checked for duplicates

No - I haven't checked

🐛 Describe the bug

In at least one case the value of a name in registered_context_products.json doesn't seem to match that in the context product label. In the json we see:

          {
               "name": [
                    "CAL TARGET"
               ],
               "type": [
                    "CALIBRATION FIELD"
               ],
               "lidvid": "urn:nasa:pds:context:target:calibration_field.cal_target::1.0"
          },

but the corresponding context product (https://pds.nasa.gov/data/pds4/context-pds4/target/calibration_field.cal_target_1.0.xml) has (abbreviated):

<Target>
    <name>CAL_TARGET</name>
    <type>Calibration Field</type>
    <description> <snip></description>
</Target>

so validate is warning about CAL_TARGET as name in a product label (it expects CAL TARGET even though it matches the context product).

🕵️ Expected behavior

I expected that validate maintains the context product names "as is" from the labels.

📜 To Reproduce

Validate any product referencing the above target context.

🖥 Environment Info

  • Version of this software: validate 3.5.2
  • Operating System: Mac with java 17

📚 Version of Software Used

validate 3.5.2

🩺 Test Data / Additional context

No response

🦄 Related requirements

🦄 #xyz

⚙️ Engineering Details

No response

🎉 Integration & Test

No response

msbentley avatar Aug 06 '24 14:08 msbentley