@asyncapi/specs
Version:
AsyncAPI schema versions
36 lines (35 loc) • 1.08 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/APIKeyHTTPSecurityScheme.json",
"type": "object",
"required": [ "type", "name", "in" ],
"properties": {
"description": {
"description": "A short description for security scheme. CommonMark syntax MAY be used for rich text representation.",
"type": "string"
},
"type": {
"description": "The type of the security scheme.",
"type": "string",
"enum": [ "httpApiKey" ]
},
"in": {
"description": "The location of the API key",
"type": "string",
"enum": [ "header", "query", "cookie" ]
},
"name": {
"description": "The name of the header, query or cookie parameter to be used.",
"type": "string"
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
}
},
"additionalProperties": false,
"example": {
"$ref": "http://asyncapi.com/examples/3.1.0/APIKeyHTTPSecurityScheme.json"
}
}