You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! Thanks as always for the work!
Poking around with complex specs, I found the use of "wildcard" shortcuts for expressing "any" schema, like in this modified example
that value: {} is causing OpenApiSpex Cast to fail, since the inferred type is nil and it is explicitly set as an :invalid_schema_type in current tests.
I have put up two lines to modify this behaviour, if it is ok to accept the {} schema as "whatever"
Let me know if it is acceptable, thanks!
The text was updated successfully, but these errors were encountered:
zoten
pushed a commit
to zoten/open_api_spex
that referenced
this issue
Jan 25, 2022
* [change] allow empty schemas to be validated as wildcards
Fix#418
* Update lib/open_api_spex/cast.ex
Co-authored-by: Mike Buhot <m.buhot@gmail.com>
Co-authored-by: Luca Dei Zotti <luca.deizotti@athonet.com>
Co-authored-by: Mike Buhot <m.buhot@gmail.com>
lucacorti
pushed a commit
to lucacorti/open_api_spex
that referenced
this issue
Feb 13, 2022
…pex#419)
* [change] allow empty schemas to be validated as wildcards
Fixopen-api-spex#418
* Update lib/open_api_spex/cast.ex
Co-authored-by: Mike Buhot <m.buhot@gmail.com>
Co-authored-by: Luca Dei Zotti <luca.deizotti@athonet.com>
Co-authored-by: Mike Buhot <m.buhot@gmail.com>
Hi everyone! Thanks as always for the work!
Poking around with complex specs, I found the use of "wildcard" shortcuts for expressing "any" schema, like in this modified example
that
value: {}
is causing OpenApiSpex Cast to fail, since the inferred type isnil
and it is explicitly set as an:invalid_schema_type
in current tests.I have put up two lines to modify this behaviour, if it is ok to accept the
{}
schema as "whatever"Let me know if it is acceptable, thanks!
The text was updated successfully, but these errors were encountered: