Skip to content

Removed ChangedEndpoint as it's similar to ChangedOperation #7

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

Merged
merged 1 commit into from
Dec 27, 2017

Conversation

adarshsharma
Copy link
Contributor

@adarshsharma adarshsharma commented Dec 27, 2017

I have removed ChangedEndpoint class as it is similar to ChangedOperation. Currently if there is any operation that is added it gets reflected both in newEndpoints and ChangedEndpint.newOperations
Similarly if any operation is deleted, it gets reflected both in missingEndpoints and ChangedEndpoint.missingOperations

Please see if this makes sense. Thanks

@quen2404
Copy link
Member

Yes, you're right! This is simplifying a lot of things! Thanks

@quen2404 quen2404 merged commit 5dfc4b1 into OpenAPITools:master Dec 27, 2017
@adarshsharma adarshsharma deleted the adarsh_master branch December 27, 2017 15:04
quen2404 pushed a commit that referenced this pull request Aug 27, 2020
`ConsoleRender` failed to resolve component schemas which had been removed in the "new" OpenAPI specification and threw an `IllegalArgumentException`:

```
Unexpected exception. Reason: ref '#/components/schemas/RemovedSchema' doesn't exist.

java.lang.IllegalArgumentException: ref '#/components/schemas/PermissionSet' doesn't exist.
	at com.qdesrame.openapi.diff.core.utils.RefPointer.resolveRef(RefPointer.java:20)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.resolve(ConsoleRender.java:231)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.lambda$properties$1(ConsoleRender.java:217)
	at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.properties(ConsoleRender.java:216)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.incompatibilities(ConsoleRender.java:199)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.lambda$incompatibilities$0(ConsoleRender.java:202)
	at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.incompatibilities(ConsoleRender.java:202)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.incompatibilities(ConsoleRender.java:185)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.itemContent(ConsoleRender.java:179)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.ul_content(ConsoleRender.java:155)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.ol_changed(ConsoleRender.java:87)
	at com.qdesrame.openapi.diff.core.output.ConsoleRender.render(ConsoleRender.java:47)
	at com.qdesrame.openapi.diff.cli.Main.main(Main.java:159)
```
quen2404 pushed a commit that referenced this pull request Aug 27, 2020
`HtmlRender` and `MarkdownRender` failed to resolve component schemas which had been removed in the "new" OpenAPI specification and threw an `IllegalArgumentException`.

Refs #7
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.

2 participants