Skip to content
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

OpenApi 3.1: external resolution of Example Object externalValue #467

Closed
Tracked by #425 ...
char0n opened this issue Jul 1, 2021 · 1 comment · Fixed by #470
Closed
Tracked by #425 ...

OpenApi 3.1: external resolution of Example Object externalValue #467

char0n opened this issue Jul 1, 2021 · 1 comment · Fixed by #470
Assignees
Labels

Comments

@char0n
Copy link
Member

char0n commented Jul 1, 2021

Specification: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#example-object

We have to guarantee mutual exclusivity between value and externalValue fields.

externalValue with URI pointing to a resource that is either JSON or YAML will be parsed into ApiDOM. Other types of content will be escaped using base64 encoding and set into value field.

@char0n
Copy link
Member Author

char0n commented Jul 1, 2021

Needed to implement BinaryParser which returns base64 encoded data within ParseResultElement. More here: #468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant