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
I expect that rswag validates response schema types. But that is not the case. I can enter anything as a type value and tests will pass. Here is a code snippet of the successful test:
As you can see the type of name is :unexisting_type . I expected that rswag would raise some error, like undefined type :unexisting_type. Can I somehow achieve this behavior?
Additional context
I don't know if it matters, but on UI it shows the type is invalid:
Dependency versions
Rswag: 2.13.0
RSpec: 3.12.0
Rails: 6.1.7.7
Ruby: 3.1.2
Relates to which version of OAS (OpenAPI Specification)
OAS2
OAS3
OAS3.1
The text was updated successfully, but these errors were encountered:
MrKirat
changed the title
[BUG] <title>
[BUG] Why rswag does not validate response schema types?
Apr 19, 2024
Describe the bug
I expect that rswag validates response schema
type
s. But that is not the case. I can enter anything as atype
value and tests will pass. Here is a code snippet of the successful test:As you can see the
type
ofname
is:unexisting_type
. I expected that rswag would raise some error, likeundefined type :unexisting_type
. Can I somehow achieve this behavior?Additional context
I don't know if it matters, but on UI it shows the type is invalid:
Dependency versions
Relates to which version of OAS (OpenAPI Specification)
The text was updated successfully, but these errors were encountered: