-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Describe the bug
PackChk reports an error when validating a PDSC file that uses a newly introduced device feature type LGA.
A device family pack includes a *.pdsc file that defines a device with the following feature entry:
<feature type="LGA" n="141"/>
When generating the pack locally, PackChk fails with an error indicating that LGA is an unknown DeviceFeatureTypeEnum value.
It appears that the XML schema has been updated to replace DeviceFeatureTypeEnum with xs:string, allowing arbitrary feature type strings. However, PackChk validation does not reflect this schema change and still enforces the previous enumeration.
To Reproduce
- Use a device family pack containing a *.pdsc file.
- Ensure the PDSC defines a device with a feature entry similar to:
<device Dname="DeviceName">
...
<feature type="LGA" n="141"/>
</device>
- Run PackChk on the PDSC file.
- Observe the validation error:
*** ERROR M371: <path-to-pdsc> (Line XXX)
Device Feature for '<DeviceName>': 'LGA' unknown.
Expected behavior
PackChk should accept feature type="LGA" as valid if the XML schema change (replacing DeviceFeatureTypeEnum with xs:string) is intentional and officially supported.
If arbitrary feature types are now allowed by the schema, PackChk should not reject values outside the historical enumeration
Environment (please complete the following information):
- PackChk 1.4.4
- OS: windows
Metadata
Metadata
Assignees
Labels
Type
Projects
Status