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
Then when trying to use orval to generate a client from the schema:
🍻 Start orval v6.27.1 - A swagger client generator for typescript
⚠️ SyntaxError: Swagger schema validation failed.
#/paths/~[...]~1{labSlug}/parameters/0 must NOT have additional properties
Expected behavior
I would expect the getter option to allow me to specific a differen variable for the path parameter. But when generating the schema with rails rswag, I do not expect this to be reflected in the generated schema file.
Dependency versions
The version of are you using for:
Rswag: 2.13.0
RSpec: 3.13.0
Rails: 7.1.3.2
Ruby: 3.3.0
Relates to which version of OAS (OpenAPI Specification)
OAS2
OAS3
OAS3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Using the custom
:getter
option for parameters as described here, will introduce agetter
key in the generated schema, and make the schema invalid.In the spec :
In the generator schema, this results in:
Then when trying to use orval to generate a client from the schema:
Expected behavior
I would expect the
getter
option to allow me to specific a differen variable for the path parameter. But when generating the schema withrails rswag
, I do not expect this to be reflected in the generated schema file.Dependency versions
The version of are you using for:
Relates to which version of OAS (OpenAPI Specification)
The text was updated successfully, but these errors were encountered: