Skip to content

Invalid spec #4

@plenluno

Description

@plenluno

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions