Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Swagger spec validation errors #535

Closed
sabedevops opened this issue Nov 10, 2022 · 1 comment
Closed

Swagger spec validation errors #535

sabedevops opened this issue Nov 10, 2022 · 1 comment
Labels
controller Work related to the controller

Comments

@sabedevops
Copy link
Contributor

image

The swagger specification lacks a securityDefinitions section that causes errors during spec validation. It seems the same definitions used in the edge apis can be used here:

securityDefinitions:
  ztSession:
    description: An API Key that is provided post authentication
    type: apiKey
    name: zt-session
    in: header

Additionally, the type of #/definitions/inspectResponseValue.properties.value is currently a list, but per the OAS2 spec, this is invalid and should instead be a string representing a single type.

@sabedevops sabedevops added the invalid This doesn't seem right label Nov 10, 2022
@sabedevops sabedevops changed the title Swapper spec validation errors Swagger spec validation errors Nov 22, 2022
@plorenz plorenz added controller Work related to the controller and removed invalid This doesn't seem right labels Oct 11, 2023
@plorenz
Copy link
Member

plorenz commented Nov 14, 2023

This will likely be fixed when we move to the next version of the REST API, moving to OpenAPI 3

@plorenz plorenz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
controller Work related to the controller
Projects
None yet
Development

No branches or pull requests

2 participants