Skip to content
New issue

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

Ft/handle external pkg name in response #752

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions internal/test/issues/issue-removed-external-ref/config.base.yaml
@@ -0,0 +1,12 @@
---
package: spec_base
generate:
chi-server: true
strict-server: true
models: true
import-mapping:
spec-ext.yaml: "github.com/deepmap/oapi-codegen/internal/test/issues/issue-removed-external-ref/gen/spec_ext"
output: gen/spec_base/issue.gen.go
output-options:
skip-prune: true
# skip-fmt: true
10 changes: 10 additions & 0 deletions internal/test/issues/issue-removed-external-ref/config.ext.yaml
@@ -0,0 +1,10 @@
---
package: spec_ext
generate:
chi-server: true
strict-server: true
models: true
output: gen/spec_ext/issue.gen.go
output-options:
skip-prune: true
# skip-fmt: true
4 changes: 4 additions & 0 deletions internal/test/issues/issue-removed-external-ref/doc.go
@@ -0,0 +1,4 @@
package head_digit_of_httpheader

//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen --config=config.ext.yaml spec-ext.yaml
//go:generate go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen --config=config.base.yaml spec-base.yaml
Empty file.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.