We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimal swagger.json
{ "swagger": "2.0", "info": { "title": "My API", "version": "1.0" }, "paths": { "/thing/update": { "post": { "operationId": "UpdateThing", "parameters": [ { "name": "models.Thing", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/models.Thing" } } ], "responses": { "200": { "description": "" } } } } }, "definitions": { "models.ThingDescription": { "type": "object", "properties": { "text": { "type": "string" } } }, "models.Thing": { "type": "object", "properties": { "ThingDescriptions": { "type": "array", "items": { "$ref": "#/definitions/models.ThingDescription" }, "readOnly": true } } } } }
When calling the generated updateThing() function, the input body (modelsThing) is empty:
updateThing()
modelsThing
It looks like NonReadonly<T> is producing the incorrect type, thus breaking the types here
NonReadonly<T>
modelsThing should have the correct type, not {}
{}
Package Version: 6.25.0
The text was updated successfully, but these errors were encountered:
fix(core): improve NonReadonly type
dd37a6e
fixes orval-labs#1236
5b76e3b
ezequiel
Successfully merging a pull request may close this issue.
What are the steps to reproduce this issue?
Minimal swagger.json
What happens?
When calling the generated
updateThing()
function, the input body (modelsThing
) is empty:It looks like
NonReadonly<T>
is producing the incorrect type, thus breaking the types hereWhat were you expecting to happen?
modelsThing
should have the correct type, not{}
What versions are you using?
Package Version: 6.25.0
The text was updated successfully, but these errors were encountered: