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
The Go module generated from a schema property like this:
"schema": { "type": "object", "additionalProperties": { "type": "string", "format": "date-time" } }
is missing the import time statement and won't compile.
"/api/v2/Configuration/LatestConfigDates": { "get": { "tags": [ "Configuration" ], "summary": "Get the latest config update times for each application running on a role.", "parameters": [ { "name": "roleId", "in": "query", "description": "The role to get latest config dates for", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "string", "format": "date-time" } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "string", "format": "date-time" } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "string", "format": "date-time" } } } } }, "500": { "description": "Server Error" } } } },
-->
openapi-generator generate -g go -i api.yaml -o go/
#3972
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #14057
Sorry, something went wrong.
I'm having this problem as well (and it does not seem to have been fixed by #14057).
Same here - the OpenAPI Schema (in YAML) that is choking the generator is:
MyUserDTO: properties: emailAndCommitDateMap: additionalProperties: items: format: date-time type: string type: array type: object type: object
Generated model is missing the import for time.
time
I can confirm I have tested with the latest master and the issue still exists.
time.Time
No branches or pull requests
Bug Report Checklist
Description
The Go module generated from a schema property like this:
is missing the import time statement and won't compile.
openapi-generator version
OpenAPI declaration file content or url
-->
Generation Details
openapi-generator generate -g go -i api.yaml -o go/
Steps to reproduce
Related issues/PRs
#3972
Suggest a fix
The text was updated successfully, but these errors were encountered: