Skip to content

Failure To Handle External References #603

@Cooksauce

Description

@Cooksauce

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?

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