swaggest / jsonschema-go

JSON Schema mapping for Go
https://pkg.go.dev/github.com/swaggest/jsonschema-go
MIT License
102 stars 13 forks source link

feat: support `[]byte` as type string format base64 #117

Closed trim21 closed 1 week ago

trim21 commented 1 week ago

golang's json package will encode and decode []byte to base64 string.

So I think we should generate schcma {"format":"base64","type":"string"} for []byte

vearutop commented 1 week ago

Thank you for this PR, I've noticed it a bit too late, after I made https://github.com/swaggest/jsonschema-go/pull/119.

Please try latest version v0.3.71.