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

Support String Formats #30

Closed
11 of 12 tasks
koxudaxi opened this issue Jul 31, 2019 · 5 comments
Closed
11 of 12 tasks

Support String Formats #30

koxudaxi opened this issue Jul 31, 2019 · 5 comments

Comments

@koxudaxi
Copy link
Owner

koxudaxi commented Jul 31, 2019

Format types

  • date
  • date-time
  • password
  • byte
  • binary
  • email
  • uuid
  • uri
  • hostname
  • ipv4
  • ipv6
  • deciaml
@shalseban
Copy link

Is this issue closed?

@koxudaxi
Copy link
Owner Author

koxudaxi commented Aug 1, 2020

@shalseban
Good question.
byte is not implemented.

OpenAPI expects that byte is base64-encoded characters.
https://swagger.io/docs/specification/data-models/data-types/#string

But, I don't know how do we treat encoded/decoded values like base64 in Pydantic.
I opened this issue. However, the problem is not resolved yet.
pydantic/pydantic#692

@shalseban
Copy link

shalseban commented Aug 1, 2020

@koxudaxi Thanks for the response.

Does it make sense to release with the other formats and open another issue for byte support?

If not, is there a work around in the meantime? :)

@koxudaxi
Copy link
Owner Author

koxudaxi commented Aug 1, 2020

You are right.
I have closed this issue.
And I will create a new issue for only byte.

@koxudaxi
Copy link
Owner Author

koxudaxi commented Aug 1, 2020

@shalseban
I have opened a new issue for byte.

Thank you very much 😄

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

2 participants