oanda / v20-openapi

OpenAPI Specification for OANDA's v20 REST API
MIT License
19 stars 9 forks source link

Invalid spec #4

Open plenluno opened 5 years ago

plenluno commented 5 years ago

I've tried go-swagger against both json/v20.json and yaml/v20.yaml, but encountered the following errors:

swagger generate client -f json/v20.json
2019/02/10 18:41:20 validating spec json/v20.json
The swagger spec at "json/v20.json" is invalid against swagger specification 2.0. see errors :
- "parameters.mt4ServerIDPathParam" must validate one and only one schema (oneOf). Found none valid
- parameters.mt4ServerIDPathParam.type in body should be one of [string number boolean integer array]
- parameters.mt4ServerIDPathParam.in in body should be one of [header]
swagger generate client -f yaml/v20.yaml
2019/02/10 18:20:35 validating spec yaml/v20.yaml
The swagger spec at "yaml/v20.yaml" is invalid against swagger specification 2.0. see errors :
- "parameters.mt4ServerIDPathParam" must validate one and only one schema (oneOf). Found none valid
- parameters.mt4ServerIDPathParam.type in body should be one of [string number boolean integer array]
- parameters.mt4ServerIDPathParam.in in body should be one of [header]