a-h / generate

Generates Go (golang) Structs from JSON schema.
MIT License
444 stars 137 forks source link

How to get property of type []byte? #74

Closed lazdmx closed 3 years ago

lazdmx commented 3 years ago

Hi there. Is it possible to get property of type []byte to be generated?

robertorch commented 3 years ago

You would instead want to use a type of string and then base64 encode the byte array. Json doesn't support a byte type.