byxorna / nycmesh-tool

nycmesh-tool CLI
Apache License 2.0
1 stars 0 forks source link

[WIP] uisp: further clean up validation errors #2

Closed byxorna closed 2 years ago

byxorna commented 2 years ago
$ swagger validate spec/uisp_swagger.yaml
The swagger spec at "spec/uisp_swagger.yaml" is invalid against swagger specification 2.0.
See errors below:
- type in definitions is required
- "paths./access-groups/sites.get.parameters" must validate one and only one schema (oneOf). Found none valid
- paths./access-groups/sites.get.parameters.collectionFormat in body should be one of [csv ssv tsv pipes]
- paths./access-groups/sites.get.parameters.in in body should be one of [header]
- paths./access-groups/sites.get.parameters.items.example in body is a forbidden property
- "paths./devices/{id}/services.get.parameters" must validate one and only one schema (oneOf). Found none valid
- paths./devices/{id}/services.get.parameters.in in body should be one of [header]
- paths./devices/{id}/services.get.parameters.type in body should be one of [string number boolean integer array]
- "paths./installations/devices.get.parameters" must validate one and only one schema (oneOf). Found none valid
- paths./installations/devices.get.parameters.collectionFormat in body should be one of [csv ssv tsv pipes]
- paths./installations/devices.get.parameters.in in body should be one of [header]
- paths./installations/devices.get.parameters.items.example in body is a forbidden property
- "paths./sites.get.parameters" must validate one and only one schema (oneOf). Found none valid
- paths./sites.get.parameters.collectionFormat in body should be one of [csv ssv tsv pipes]
- paths./sites.get.parameters.in in body should be one of [header]
- paths./sites.get.parameters.items.example in body is a forbidden property
- path param "{udapiUrl*}" has no parameter definition
- path param "udapiUrl" is not present in path "/devices/{deviceId}/udapi/{version}/{udapiUrl*}"
- path param "{token}" has no parameter definition
- path param "{id}" has no parameter definition
- path param "payload" is not present in path "/devices/{id}/services"
- path param "{deviceId}" has no parameter definition
byxorna commented 2 years ago

This is probably invalid now, post refactoring how the codegen works