forked from swagger-api/swagger-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] master from swagger-api:master #228
Open
pull
wants to merge
580
commits into
atxwebs:master
Choose a base branch
from
swagger-api:master
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use latest snapshot to test new url
use release version in action
Occurs on windows filesystems: when absoluteUri is something like "C:/openapi.yml", the "scheme" part is resolved into "C". So it passes through all the statements and lands on an exception being thrown. A more resilient approach is to always default to reading from file when the scheme cannot be determined
Update ReferenceUtils to better support windows filesystem
Get latest changes from swagger-parser origin repository
…-resolver-for-oas-30 SWG-9288 utilizing safe url resolver for OAS 3.0 parsing
fixed issue 2034, added test case for issue
"io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is null #2048 PR for: ``` Caused by: java.lang.NullPointerException: Cannot invoke "io.swagger.v3.oas.models.media.Schema.get$ref()" because "items" is null at io.swagger.v3.parser.processors.SchemaProcessor.processArraySchema(SchemaProcessor.java:218) at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:69) at io.swagger.v3.parser.processors.SchemaProcessor.processPropertySchema(SchemaProcessor.java:139) at io.swagger.v3.parser.processors.SchemaProcessor.processSchemaType(SchemaProcessor.java:76) at io.swagger.v3.parser.processors.SchemaProcessor.processSchema(SchemaProcessor.java:61) at io.swagger.v3.parser.processors.ComponentsProcessor.processSchemas(ComponentsProcessor.java:231) at io.swagger.v3.parser.processors.ComponentsProcessor.processComponents(ComponentsProcessor.java:145) at io.swagger.v3.parser.OpenAPIResolver.resolve(OpenAPIResolver.java:73) ... ``` The above is from a log and I don't have a easy way to create a reproducer. You'll notice though that most call sites of `ArraySchema.getItems()` in this repo do check for a null result value, but not _all_ call sites.
List<AuthorizationValue>, ParseOptions)
[Issue 2048] NullPointerException in SchemaProcessor.processArraySchema()
[Issue 2046] NPE in OpenAPIV3Parser.read(String, List<AuthorizationValue>, ParseOptions)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )