Define to output file names for types and server #1958
-
|
Hi! I am new to this "way of development" and to this package. I am trying to implement import mapping here and i ran into some issues in generating both the types and the server using some basic information:
I haven't found a way to configure both the # yaml-language-server: $schema=../../../configuration-schema.json
package: masters
output: ../../../src/domain/masters/gen/openapi_http.gen.go
generate:
models: true
gin-server: true
output-options:
skip-prune: true
import-mapping:
../base/base.yaml: ssa-backend/api/openapi/base/base.yamlCode above run just fine, but is there anyway to generate two separate file for the I haven't found any information about this. I Tried to # yaml-language-server: $schema=../../../configuration-schema.json
package: masters
output: ../../../src/domain/masters/gen/openapi_http.gen.go
output-models: ../../../src/domain/masters/gen/openapi_types.gen.go
generate:
models: true
gin-server: true
output-options:
skip-prune: true
import-mapping:
../base/base.yaml: ssa-backend/api/openapi/base/base.yamlAnd you can guess that it doesn't work, because that key is basically my own imagination. Any help? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @devinpapalangi the short answer is that you need to have two config files for |
Beta Was this translation helpful? Give feedback.
Hey @devinpapalangi the short answer is that you need to have two config files for
oapi-codegen, if you want two output files