oapi-codegen
oapi-codegen copied to clipboard
oapi-codegen fails to generate w/ lichess public API
Steps to reproduce: Visit https://lichess.org/api and click download for the openapi spec file.
$ oapi-codegen -package openapi ./openapi.json > lichess.gen.go
error loading swagger spec in ./openapi.json
: error unmarshaling JSON: while decoding JSON: failed to unmarshal property "components" (*openapi3.Components): failed to unmarshal property "schemas" (*openapi3.Schemas): failed to unmarshal property "properties" (*openapi3.Schemas): failed to unmarshal property "type" (*string): json: cannot unmarshal array into Go value of type string