Skip to content

Fix allOf merges using external refs#941

Merged
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
octomad:fix-external-ref
Mar 14, 2023
Merged

Fix allOf merges using external refs#941
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
octomad:fix-external-ref

Conversation

@octomad
Copy link
Copy Markdown
Contributor

@octomad octomad commented Jan 26, 2023

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.

@deepmap-marcinr deepmap-marcinr 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>
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"

2 participants