-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected ibm-api-symmetry warning with dictionary #699
Comments
Taking a look to the code in here, it seems that if the variant defines |
That's correct - if the variant schema is a dictionary, it may contain properties that are not (or even cannot) be represented on the canonical schema, which would violate the graph fragment pattern. |
Thanks for the answer. Does it mean that the use of dictionaries is not allowed in variant schemas? |
Upon looking at your API in more detail, I actually think that this case may be allowed since the two schemas are using the same dictionary property. I will go over the code and confirm whether or not this is intended behavior or a bug. Thanks for opening the issue. |
@vsandonis after review, this should not be a warning. I'll mark this as a bug and will update the code soon. |
I am getting validation warning
ibm-api-symmetry
with an openapi spec that includes a dictionary following https://swagger.io/docs/specification/v3_0/data-models/dictionaries/ :I am using this version:
validator: 1.20.0; ruleset: 1.19.0 (default)
Here is the yaml file that generates the warning: error_example.txt
Is this a legitimate warning?
I guess it is not because if I define
input_parameters
inDeviceConfiguration
as a string instead of a dictionary, no warning is generated, so I guess it has to do with the dictionary definition. In addition, if I comment the path/devices/{device_id}
(lines 14 to 36 in the file) no warning is generated either.Is there anyway to skip the validation for this
input_parameters
?Thanks for your help.
The text was updated successfully, but these errors were encountered: