Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork136
Custom format for unmarshalling doesn't work#778
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello, Thanks for the openap-core project; it's very helpful. I'm using it to validate my api input. I'm trying to make sure that required values that are blank strings are not allowed. I've tried using the documented YAML specs directly (https://swagger.io/docs/specification/data-models/data-types/#string):
and
But the unmarshaller ignores these specifications. I upgraded to 0.19.0a1 to add a custom validator, perhttps://openapi-core.readthedocs.io/_/downloads/en/latest/pdf/ by@p1c2u Artur Maciag but his example doesn't seem to do anything:
The unmarshaller for the YAML:
Happily returns:
tldr; it would be nice to get this custom validator working, but can anyone give me a workaround in the meantime to make sure a string isn't blank? Thanks, |
BetaWas this translation helpful?Give feedback.
All reactions
thanks for the report, I prepared fix for that. It's part of 0.19.0a2 version
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
thanks for the report, I prepared fix for that. It's part of 0.19.0a2 version |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Thank you! |
BetaWas this translation helpful?Give feedback.