Skip to content

Fix allOf merges using external refs - #941

Merged
1 commit merged into
oapi-codegen:masterfrom
octomad:fix-external-ref
Mar 14, 2023
Merged

Fix allOf merges using external refs#941
1 commit merged into
oapi-codegen:masterfrom
octomad:fix-external-ref

Conversation

@octomad

@octomad octomad commented Jan 26, 2023

Copy link
Copy Markdown
Contributor

Fixes #940.

I've added to the test schema to illustrate the situation and to ensure that the code coverage is there for this particular scenario.

}

pathParts := strings.Split(ref.Ref, "#")
if len(pathParts) != 2 {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to be an artificial limitation for pathParts to have exactly 2 parts.

@ghost
ghost merged commit 497e000 into oapi-codegen:master Mar 14, 2023
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
Co-authored-by: Andrew Young <andrew.young@verizonmedia.com>
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
Co-authored-by: Andrew Young <andrew.young@verizonmedia.com>
danicc097 pushed a commit to danicc097/oapi-codegen that referenced this pull request Aug 31, 2024
Co-authored-by: Andrew Young <andrew.young@verizonmedia.com>
This pull request was closed.
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.

Using allOf with $ref to json schema errors with "unsupported reference"

1 participant