Closed fmigneault closed 8 months ago
Thank you for reporting. We will do further investigation.
@fmigneault @dstenger @pcdion We run into the same issue with our implementation.
body: Field 'id' is required. (code: 1026)
From: body.<allOf>.<processSummary.yaml>.<allOf>.<required>
body: Field 'version' is required. (code: 1026)
From: body.<allOf>.<processSummary.yaml>.<allOf>.<required>
In our case, all of our processes have version
and id
and they are both strings, e.g. "1.0.0"
.
Our latest Processes conformance test is now integrated and this failure can be tested directly from https://maps.gnosis.earth/ogcapi (Gerald's workaround is needed)
@fmigneault @jerstlouis I cannot reproduce this issue. I think this may have been fixed in the meantime. Could you test this again with the current version of the test suite?
@fmigneault @jerstlouis We will close this PR on the 15th of February if there is no objection.
No objection. If the problem is encountered again, I will comment to reopen as necessary.
Is your feature request related to a problem? Please describe.
When one or more required fields are flagged as below:
The test should be clearer regarding why the operation failed. In this case, the evaluated instance did have both the
id
andversion
fields in its response, butversion
happened to be defined asnull
rather than an appropriate version string. The message was therefore misleading in this case.Describe the solution you'd like The message should make it clear why a given field fails a test. Details about if the field is completely missing, or of invalid type, invalid pattern/format, or other reasons (?) should be added.