-
Notifications
You must be signed in to change notification settings - Fork 35
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
how to use nullable attribute in examples? #49
Comments
Hi @sybrands-place, can you provide a minimal OpenAPI schema to reproduce the issue? This way I can find a solution faster. |
Sure, here's an example:
In this case with an example it works (i.e. EDIT: my original post might be misleading together with this message. Then it didn't work even with an example, but it was because the example was for a child element and not the complete element. So I guess that's clear to me now. I only need the verification that |
@sybrands-place sorry for the delay, I've been really busy. I'm now working on allowing |
Feature released in |
How can I get a
null
example value for a typestring
? (while using OpenAPI 3.0.3)When I use the example above, I get
"errorDescription": "string",
as a resultWhen I add
"default": null
there's a[FATAL] Error while mocking schema ...
(maybe updating
ajv
is a solution? https://ajv.js.org/v6-to-v8-migration.html)The text was updated successfully, but these errors were encountered: