Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Failure To Handle External References #603

Copy link
Copy link
@Cooksauce

Description

@Cooksauce
Issue body actions

References to local files or external files outside of the file being parsed fail to parse correctly. The failure results in the properties being parsed to just be completely ignored.

$ref: path.to.my.yaml

Fails with diagnostic error:
The reference string 'path.to.my.yaml' has invalid format.

This appears to be caused by OpenApiV3VersionService.ConvertToOpenApiReference(..) expecting ReferenceType? == null for external references. However, OpenApiV3Deserializer is blindly passing in ReferenceType.Schema.

Links:
OpenApiV3VersionService
OpenApiV3Deserializer

Is this a known issue?

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.