swagger: '2.0'info: version: '1.0.0' title: Sample API for editing description: Trying to debug this API in the editor
paths: "/v1/places/{PlaceID}/devices": get: summary: List Devices fo a location description: An Array of all devices in location. produces: - application/json parameters: - name: PlaceID in: path type: integer responses: 200: description: OK schema: $ref: "#/definitions/PlaceWithPort"
definitions: PlaceWithPort: type: object properties: placeId: type: integer name: type: string devices: items: properties: deviceId: type: integer name: type: string type: type: string type: object type: array
basePath: /getInventoryBySite/1.0.0schemes: - httpsErrors
Schema error at paths['/v1/places/{PlaceID}/devices'].get.parameters[0]
should NOT have additional properties
additionalProperty: type, name, in
Schema error at paths['/v1/places/{PlaceID}/devices'].get.parameters[0].in
should be equal to one of the allowed values
allowedValues: body, header, formData, query
Jump to line 17
Path parameters must always be required. Add:
required: true
to the parameter definition and the errors would disappear.