Help with WZDx v4.1 GeoJSON validation #343
-
I have been having problems validating a WZDx v4.1 feed that I have been involved with developing. I have attempted to use both the Python Below is the error that I get with my custom validator script that uses the
https://www.jsonschemavalidator.net/ fails validation with the same error. Validation also fails, with the same error, for example feeds posted in https://github.com/usdot-jpo-ode/wzdx/tree/main/examples/WorkZoneFeed. Note that the feed I have developed only has I would appreciate any guidance on how to correctly validate a WZDx v4.1 GeoJSON feed. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@persjabari thanks for raising this issue. I tried running every Work Zone Feed example against the JSON schema and they all failed, though it was due to issues with the examples. All example files in some cases incorrectly provide strings for properties that must be boolean values. I fixed the example file issues in #344, awaiting approval. The error message about "const" is misleading—at least in the examples case there were other issues that were also shown and resolving those removed the "const" message. I was using https://www.jsonschemavalidator.net/; does it provide other error messages for the feed you are trying to validate in addition to the "const" message? |
Beta Was this translation helpful? Give feedback.
@persjabari thanks for raising this issue. I tried running every Work Zone Feed example against the JSON schema and they all failed, though it was due to issues with the examples. All example files in some cases incorrectly provide strings for properties that must be boolean values. I fixed the example file issues in #344, awaiting approval.
The error message about "const" is misleading—at least in the examples case there were other issues that were also shown and resolving those removed the "const" message. I was using https://www.jsonschemavalidator.net/; does it provide other error messages for the feed you are trying to validate in addition to the "const" message?