datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

Support byte of string format

Open koxudaxi opened this issue 4 years ago • 1 comments

This PR supports byte of string format.

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. samuelcolvin/pydantic#692

Related issues

https://github.com/koxudaxi/datamodel-code-generator/issues/30

koxudaxi avatar Aug 01 '20 18:08 koxudaxi