When using in
parameter in the securitySchemes
,
openapi: 3.0.0
servers:
- url: http://hello-world.com
info:
description: |-
Hello World!
version: "4"
title: Hello World
components:
securitySchemes:
Token:
description: Secret Token
type: http
name: Token
in: header
scheme: Token
Tenant:
description: Tenant ID
type: http
name: Tenant
in: header
scheme: Tenant
The editor.swagger.io throws a structural error:
Structural error at components.securitySchemes.Token should NOT have additional properties additionalProperty: name, in
How to use "in" for securitySchemes for OpenAPI 3.0.0?
The structural error would be there if I changed the definition to openapi: 2.0.0
.