USACE / cwms-data-api

Corps Water Management System RESTful Data Service
MIT License
13 stars 14 forks source link

Invalid OpenAPI for auth keys endpoints #480

Open adamkorynta opened 11 months ago

adamkorynta commented 11 months ago

I loaded the Swagger Docs from https://cwms-data.usace.army.mil/cwms-data/swagger-docs and input them into the Swagger Editor for validation and received the following errors:

Errors

Semantic error at security.0
Security requirements must match a security definition
Jump to line 7
Semantic error at paths./cwms-data/auth/keys/{key-name}.delete.requestBody
DELETE operations cannot have a requestBody.
Jump to line 111
Structural error at components.securitySchemes.ApiKey
should NOT have additional properties
additionalProperty: scheme
Jump to line 6636
adamkorynta commented 11 months ago

image screenshot for some clarity

MikeNeilson commented 11 months ago

hmm. I had to generate those sections manually; looks like I missed some parts.