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

oasdiff error in composed mode when the same path appears in different files #500

Closed
anikitin opened this issue Mar 5, 2024 · 1 comment · Fixed by #501
Closed

oasdiff error in composed mode when the same path appears in different files #500

anikitin opened this issue Mar 5, 2024 · 1 comment · Fixed by #501
Labels
bug Something isn't working

Comments

@anikitin
Copy link

anikitin commented Mar 5, 2024

When I feed two OpenAPI files containing the same path but different methods to oasdiff changelog in composed mode, it fails
with the following error:

Error: diff failed: duplicate endpoint (POST /test) found in get-test-openapi.yml and post-test-openapi.yml. You may add the x-since-date extension to specify order

It is expected that the combination of path+method should be unique (not just the path) across files.

Version 1.10.10. Command line:

oasdiff changelog "*-openapi.yml" "*-openapi.yml" -c -f text

See attachment.
oasdiff-duplicate-endpoint-bug.zip

@anikitin anikitin added the bug Something isn't working label Mar 5, 2024
@reuvenharrison
Copy link
Collaborator

Thanks. I replicated this. Working on a fix.

@reuvenharrison reuvenharrison linked a pull request Mar 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants