Custom format for unmarshalling doesn't work #778
-
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, per https://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, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
thanks for the report, I prepared fix for that. It's part of 0.19.0a2 version |
Beta Was this translation helpful? Give feedback.
Hi @heidiLinguist
thanks for the report, I prepared fix for that. It's part of 0.19.0a2 version