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

map key not found #602

Closed
akhilarao29 opened this issue Sep 5, 2024 · 3 comments
Closed

map key not found #602

akhilarao29 opened this issue Sep 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@akhilarao29
Copy link

akhilarao29 commented Sep 5, 2024

Hello,
I am experimenting with oasdiff and also an open api spec of SysML. Here is the link where you can find the spec: http://sysml2.intercax.com:9000/docs/, I have downloaded the same and named it as openspec1.json. Made a copy of it, made some changes and renamed it as openspec2.json.
When i try to find the difference using the command: docker run --rm -t -v $(pwd):/specs:ro -w /specs tufin/oasdiff:latest diff openspec1.json openspec2.json i get the following error "failed to load base spec from "openspec1.json": map key "Error" not found"
I have tried with the previous versions as well and received the same error.
Attaching openspec1.json and openspec2.json
openspec1.json
openspec2.json

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

The spec is invalid. It contains references to #/components/schemas/Error which doesn't exist.

Also, it is using OpenAPI v3.1.0 which isn't supported by oasdiff.

This one looks better:
https://github.com/Systems-Modeling/SysML-v2-API-Java-Client/blob/master/api/openapi.yaml

@akhilarao29
Copy link
Author

Hello,
Are there any plans to support 3.1?

@reuvenharrison
Copy link
Collaborator

Realistically, no.
Please see this discussion about 3.1 support: #52

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

No branches or pull requests

2 participants