Skip to content

Implement casing of :byte type #503

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

Closed
gmile opened this issue Sep 30, 2022 · 3 comments
Closed

Implement casing of :byte type #503

gmile opened this issue Sep 30, 2022 · 3 comments

Comments

@gmile
Copy link
Contributor

gmile commented Sep 30, 2022

The documentation mentions all types from OpenAPI spec to be recognized and cast:

Recognizes all the types defined in Open API (itself a superset of JSON Schema).
JSON Schema types:
[https://json-schema.org/latest/json-schema-core.html#rfc.section.4.2.1](https://json-schema.org/latest/json-schema-core.html#rfc.section.4.2.1)
Open API primitive types:
[https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#data-types)

However, it appears :byte type, e.g. a base64-encoded value, is not being handled e.g. decoded from Base64.

@zorbash
Copy link
Contributor

zorbash commented Oct 3, 2022

Thanks for reporting this @gmile
Would you be interested in submitting a PR to implement this behaviour?

@gmile
Copy link
Contributor Author

gmile commented Oct 3, 2022

@zorbash sure, here's my attempt at addressing this one: #504

@mbuhot
Copy link
Collaborator

mbuhot commented Oct 3, 2022

Fixed in #504 thanks @gmile 👍

@mbuhot mbuhot closed this as completed Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants