Replies: 1 comment
-
@ramani527 This is the repository for the OpenAPI Specification itself. For issues with tools, please contact your tool vendor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a go project and am using Swagger 2.0 and now want to move to Openapi 3.0
I am using these commands for the same -
API-
openapi-generator generate
-g go
-i openapi.yaml
-o ./openapi_client
--global-property apis,supportingFiles=false,models=false
--additional-properties sortParamsByRequiredFlag=false,packageName=client,modelPackage=project-root/openapi_models
Model-
openapi-generator generate
-g go
-i openapi.yaml
-o ./openapi_models
--global-property models,supportingFiles,apis=false
--additional-properties packageName=models,nullable=false
The code does get created but the API files fail to import the models when they get generated resulting into a lot of undefined errors. Appreciate any help on this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions