oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

oapi-codegen fails to generate w/ lichess public API

Open mikeb26 opened this issue 3 years ago • 0 comments

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

mikeb26 avatar Dec 08 '22 21:12 mikeb26