Skip to content

add option x-go-allof-embed-refs#1295

Closed
lahabana wants to merge 1 commit into
oapi-codegen:mainfrom
lahabana:xEmbedRef
Closed

add option x-go-allof-embed-refs#1295
lahabana wants to merge 1 commit into
oapi-codegen:mainfrom
lahabana:xEmbedRef

Conversation

@lahabana
Copy link
Copy Markdown

This is useful when working with extending APIs

I'm opening this as draft as it's missing:

  • Docs
  • More tests

This is useful for us as we have apis that expand APIs already defined externally. This enables us to avoid a lot of mapping code.

I didn't want to extend old-merge-schemas as this seems likely to be removed in the future.
We handle the original issue by just refusing the generate go code which would result in a non openAPI compliant (which was the original motivation for not using embedded objects ref: #531)

Signed-off-by: Charly Molter [email protected]

This is useful when working with extending APIs

Signed-off-by: Charly Molter <[email protected]>
@lahabana
Copy link
Copy Markdown
Author

There seems to be more recent options

@lahabana lahabana deleted the xEmbedRef branch September 30, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant