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)
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)