Getting error in swaggger editor for valid YAML
I have following yaml which I was trying to use in swagger editor. swagger: '2.0' info: title: API specification license: name: 'This is my API.' description: Sample API version: '1' host: my.api.com schemes: - https basePath: '/baseUri' consumes: - application/json produces: - application/json paths: '/endpoint': get: tags: - operationTag summary: Sample endpoint description: Sample endpoint description. operationId: GetSampleData parameters: - in: query name: sampleInput description: sample input required: true type: string responses: '200': description: OK schema: $ref: '#/definitions/ResponseModel' '401': description: Unauthorized schema: $ref: "https://raw.githubusercontent.com/airwatch-api/swagger/master/CommonDefinitions.yaml#/definitions/BaseExceptionModel" '400': description: >- { 8003: Input cannot be empty, } schema: $ref: "https://raw.githubusercontent.com/airwatch-api/swagger/master/CommonDefinitions.yaml#/definitions/BaseExceptionModel" '404': description: >- { 2000: Input not registered } schema: $ref: "https://raw.githubusercontent.com/airwatch-api/swagger/master/CommonDefinitions.yaml#/definitions/BaseExceptionModel" definitions: ResponseModel: type: object description: Response model. properties: option: description: response option type: boolean I keep on getting following errors. Can someone help me resolving these? Structural errorat pathsshould only have path names that start with `/` Jump to line 16 Structural errorat paths./endpointshould be object Jump to line 17Solved