We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
setResolve(true) tells OpenAPIV3Parser to load specs from external locations and put them in the model.
ParseOptions parseOptions = new ParseOptions(); parseOptions.setResolve(true); OpenAPI openApiModel = new OpenAPIV3Parser().read(inputFile, null, parseOptions);
It is desirable to distinguish schemas loaded from external locations from the ones defined locally. For example:
On the other hand, api3.yaml may reference another file.yaml that must be resolved and included in the generated code for api3 unlike errors.yaml.
Proposal: store original reference in $originalRef next to $ref in SchemaProcessor.
This change will let code generators add custom logic for shared vs not schemas.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
setResolve(true) tells OpenAPIV3Parser to load specs from external locations and put them in the model.
It is desirable to distinguish schemas loaded from external locations from the ones defined locally. For example:
Code generation for errors.yaml should only be done once.
On the other hand, api3.yaml may reference another file.yaml that must be resolved and included in the generated code for api3 unlike errors.yaml.
Proposal: store original reference in $originalRef next to $ref in SchemaProcessor.
This change will let code generators add custom logic for shared vs not schemas.
The text was updated successfully, but these errors were encountered: