|
Post by ariel2023 on Apr 23, 2023 1:42:05 GMT
Hi all, I have a question why Redfish-JsonSchema-ResponseValidator tool fails to validate Oem url. I use 'python3 Redfish-JsonSchema-ResponseValidator.py -m ./rfMockUpDfltDir -S'. Then errors occur, for example, OemManager.json schema: >>>Expecting value: line 1 column 1 (char 0)json load failed I guess it's because that '-S' means that tell resourceValidate to get the schemaFiles from redfish.dmtf.org/schemas/v1/'. However, how do we pass the Oem url in Redfish-JsonSchema-ResponseValidator without local json files? Thanks for any clarification!
|
|
|
Post by mraineri on Apr 24, 2023 17:00:47 GMT
Yes, if you specify "-S", it will attempt to download OemManager.json from DMTF's schema repository, which will result in a 404 (and invalid JSON).
If you want to validate with non-standard schema, unfortunately you'd need to use local schema files; there are no options today to download OEM schema files. You will need to use "-s" (lower case s) and point to a local folder containing all of your JSON Schema. This should be the contents of DSP8010 plus any additional JSON Schema you require.
|
|