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 5 years ago • 1 comments
trafficstars

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

https://github.com/pydantic/pydantic/issues/692 was resolved.

kshramt avatar Jul 14 '24 15:07 kshramt

Resolved in v2.0a4 (changelog), It isn't backported to v1.x.

ilovelinux avatar Oct 11 '25 11:10 ilovelinux