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
Use this schema:
{ "openapi": "3.0.1", "info": { "title": "Test", "version": "1.0" }, "paths": { "/api/useradmin/organization/bankidusage": { "get": { "tags": [ "UserAdmin" ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/BankIdUsage" } } } } } } }, "/api/useradmin/users/{userId}": { "get": { "tags": [ "UserAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserAdminDto" } } } } } } } }, "components": { "schemas": { "BankIdUsage": { "enum": [ "Allow", "Deny", "Force" ], "type": "string", "x-enumNames": [ "Allow", "Deny", "Force" ] }, "UserAdminDto": { "required": [ "bankIdUsage" ], "type": "object", "properties": { "bankIdUsage": { "allOf": [ { "$ref": "#/components/schemas/BankIdUsage" } ], "x-enumNames": [ "Allow", "Deny", "Force" ] } }, "additionalProperties": false } } } }
and generate with mocks enabled.
This is the resulting imports:
Only the value import should happen if both the type and value is needed:
Duplicate identifier 'BankIdUsage'.
PR coming
Latest orval
The text was updated successfully, but these errors were encountered:
AllieJonsson
Successfully merging a pull request may close this issue.
What are the steps to reproduce this issue?
Use this schema:
and generate with mocks enabled.
What happens?
This is the resulting imports:
What were you expecting to happen?
Only the value import should happen if both the type and value is needed:
Any logs, error output, etc?
Duplicate identifier 'BankIdUsage'.
Any other comments?
PR coming
What versions are you using?
Latest orval
The text was updated successfully, but these errors were encountered: