-
Notifications
You must be signed in to change notification settings - Fork 39
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
combined schema (anyOf, allOf, oneOf) error message enhancement #97
Comments
@cognifloyd We support two types of schema for publish 1) a string in the format k1=v1 k2=v2 and 2) a dictionary of key value pairs. That's the reason for the error reporting one of the schemas not being matched. This error is produced by json schema and a result of support of more than one schemas here. I will keep this issue open but at this point we don't have a solution for this unless we drop support of 1 from the schema. |
I wouldn't recommend dropping support for either of those options. I'm not talking about just Maybe when the schema is something that takes combined schemas (eg |
I don't know about the feasibility of enhancing the messages, as you are probably using some 3rd party validation library. But it would be helpful, so I opened this issue to put it on the radar. |
+1 |
@m4dcoder would it be possible to include the schema possibilities that it is trying to match against? |
i am also getting same error like this |
I think this goes here, but if it goes on StackStorm/st2, I can file the issue there.
This issue is about improving the error message returned when a schema validation error occurs due to not matching a
oneOf
schema.I ran an orquesta workflow and for the task transition I used the incorrect:
instead of the correct:
Doing that gave me an error message like:
Then, I went to look up the schema to figure out what I did wrong, mistakenly guessing that it didn't like my use of Jinja. My error was passing in a dict instead of an array. Could the error message be improved to say what the options are when the schemaPath is
oneOf
? (in this case string or array of unique one item dicts)The text was updated successfully, but these errors were encountered: