Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions definitions/3.1.0/APIKeyHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$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"
}
}
32 changes: 32 additions & 0 deletions definitions/3.1.0/BearerHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/BearerHTTPSecurityScheme.json",
"type": "object",
"required": [ "type", "scheme" ],
"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": [ "http" ]
},
"bearerFormat": {
"description": "A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes.",
"type": "string"
},
"scheme": {
"description": "The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.",
"type": "string",
"enum": [ "bearer" ]
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
}
},
"additionalProperties": false
}
15 changes: 15 additions & 0 deletions definitions/3.1.0/HTTPSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/HTTPSecurityScheme.json",
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.1.0/NonBearerHTTPSecurityScheme.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/BearerHTTPSecurityScheme.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/APIKeyHTTPSecurityScheme.json"
}
]
}
37 changes: 37 additions & 0 deletions definitions/3.1.0/NonBearerHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/NonBearerHTTPSecurityScheme.json",
"type": "object",
"not": {
"type": "object",
"properties": {
"scheme": {
"description": "A short description for security scheme.",
"type": "string",
"enum": [ "bearer" ]
}
}
},
"required": [ "scheme", "type" ],
"properties": {
"description": {
"description": "A short description for security scheme.",
"type": "string"
},
"type": {
"description": "The type of the security scheme.",
"type": "string",
"enum": [ "http" ]
},
"scheme": {
"description": "The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.",
"type": "string"
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
}
},
"additionalProperties": false
}
16 changes: 16 additions & 0 deletions definitions/3.1.0/Reference.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/Reference.json",
"description": "A simple object to allow referencing other components in the specification, internally and externally.",
"type": "object",
"required": [ "$ref" ],
"properties": {
"$ref": {
"description": "The reference string.",
"$ref": "http://asyncapi.com/definitions/3.1.0/ReferenceObject.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.1.0/ReferenceObject.json"
}
}
6 changes: 6 additions & 0 deletions definitions/3.1.0/ReferenceObject.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/ReferenceObject.json",
"type": "string",
"format": "uri-reference"
}
26 changes: 26 additions & 0 deletions definitions/3.1.0/SaslGssapiSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/SaslGssapiSecurityScheme.json",
"type": "object",
"required": [ "type" ],
"properties": {
"description": {
"description": "A short description for security scheme.",
"type": "string"
},
"type": {
"description": "The type of the security scheme.",
"type": "string",
"enum": [ "gssapi" ]
}
},
"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/Sasl.json"
}
}
26 changes: 26 additions & 0 deletions definitions/3.1.0/SaslPlainSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/SaslPlainSecurityScheme.json",
"type": "object",
"required": [ "type" ],
"properties": {
"description": {
"description": "A short description for security scheme.",
"type": "string"
},
"type": {
"description": "The type of the security scheme. Valid values",
"type": "string",
"enum": [ "plain" ]
}
},
"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/Sasl.json"
}
}
26 changes: 26 additions & 0 deletions definitions/3.1.0/SaslScramSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/SaslScramSecurityScheme.json",
"type": "object",
"required": [ "type" ],
"properties": {
"description": {
"description": "A short description for security scheme.",
"type": "string"
},
"type": {
"description": "The type of the security scheme.",
"type": "string",
"enum": [ "scramSha256", "scramSha512" ]
}
},
"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/Sasl.json"
}
}
15 changes: 15 additions & 0 deletions definitions/3.1.0/SaslSecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/SaslSecurityScheme.json",
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SaslPlainSecurityScheme.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SaslScramSecurityScheme.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SaslGssapiSecurityScheme.json"
}
]
}
37 changes: 37 additions & 0 deletions definitions/3.1.0/SecurityScheme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/SecurityScheme.json",
"description": "Defines a security scheme that can be used by the operations.",
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.1.0/userPassword.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/apiKey.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/X509.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/symmetricEncryption.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/asymmetricEncryption.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/HTTPSecurityScheme.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/oauth2Flows.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/openIdConnect.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.1.0/SaslSecurityScheme.json"
}
],
"example": {
"$ref": "http://asyncapi.com/examples/3.1.0/SecurityScheme.json"
}
}
24 changes: 24 additions & 0 deletions definitions/3.1.0/X509.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/X509.json",
"type": "object",
"required": [ "type" ],
"properties": {
"description": {
"type": "string"
},
"type": {
"type": "string",
"enum": [ "X509" ]
}
},
"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/X509.json"
}
}
14 changes: 14 additions & 0 deletions definitions/3.1.0/anySchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/anySchema.json",
"description": "An object representing either a schema or a multiFormatSchema based on the existence of the 'schema' property. If the property 'schema' is present, use the multi-format schema. Use the default AsyncAPI Schema otherwise.",
"if": {
"required": [ "schema" ]
},
"then": {
"$ref": "http://asyncapi.com/definitions/3.1.0/multiFormatSchema.json"
},
"else": {
"$ref": "http://asyncapi.com/definitions/3.1.0/schema.json"
}
}
31 changes: 31 additions & 0 deletions definitions/3.1.0/apiKey.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/apiKey.json",
"type": "object",
"required": [ "type", "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": [ "apiKey" ]
},
"in": {
"description": " The location of the API key.",
"type": "string",
"enum": [ "user", "password" ]
}
},
"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/apiKey.json"
}
}
23 changes: 23 additions & 0 deletions definitions/3.1.0/asymmetricEncryption.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.1.0/asymmetricEncryption.json",
"type": "object",
"required": [ "type" ],
"properties": {
"description": {
"description": "A short description for security scheme.",
"type": "string"
},
"type": {
"description": "The type of the security scheme.",
"type": "string",
"enum": [ "asymmetricEncryption" ]
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.1.0/specificationExtension.json"
}
},
"additionalProperties": false
}
Loading
Loading