Skip to content

Conversation

@jhemelhof
Copy link

Pull Request

Description

When creating references throughout the parser relative ones are sometimes generated as "./foo.yaml" and "foo.yaml". As the rename cache performs plain string equals checks these are considered to be different files, which isn't correct. This PR adds normalization for the external part of the references, this way we always ensure a consistent comparison regardless of how the references are defined.

Fixes: #2217

Type of Change

  • 🐛 Bug fix

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

@jhemelhof
Copy link
Author

Already fixed by #2105

@jhemelhof jhemelhof closed this Nov 9, 2025
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.

[Bug]: Swagger Parser generates duplicate components with sequential suffixes when using mixed reference patterns

1 participant