Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add object descriptions and examples #425

Merged
merged 52 commits into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
43f0eb7
chore(deps): bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9…
dependabot[bot] Aug 30, 2023
ff3ab77
chore: exclude tools/bundler/node_modules from final package (#424)
Baldinof Sep 15, 2023
4e2cb9b
added description and object examples to schema 3.0.0
AceTheCreator Sep 27, 2023
1ef60eb
Merge branch 'master' into v3-description
AceTheCreator Sep 27, 2023
a0f064a
removed changes in go file
AceTheCreator Oct 3, 2023
0fc19aa
.
AceTheCreator Oct 3, 2023
f04815f
remove changes in npmignore file
AceTheCreator Oct 3, 2023
e8d4e95
.
AceTheCreator Oct 3, 2023
bbb288a
.
AceTheCreator Oct 3, 2023
3410019
Delete .DS_Store
AceTheCreator Oct 3, 2023
f3fd0c8
Delete definitions/.DS_Store
AceTheCreator Oct 3, 2023
1ce3214
Merge branch 'next-major-spec' into v3-description
AceTheCreator Oct 11, 2023
ff4519f
Merge branch 'next-major-spec' into v3-description
AceTheCreator Oct 13, 2023
0f5b35f
Delete examples/.DS_Store
AceTheCreator Oct 13, 2023
402c439
fixed a typo
AceTheCreator Oct 13, 2023
2ab9038
chore(deps-dev): bump @babel/traverse from 7.12.13 to 7.23.2 (#437)
dependabot[bot] Oct 16, 2023
52beabb
Merge branch 'next-major-spec' into v3-description
AceTheCreator Nov 8, 2023
7d1bdd7
testing formatter
AceTheCreator Nov 8, 2023
11f6f3d
did it fix?
AceTheCreator Nov 8, 2023
90b74e5
Merge branch 'asyncapi:master' into v3-description
AceTheCreator Nov 8, 2023
e3e90cc
Update apiKey.json
AceTheCreator Nov 8, 2023
a9e1df7
Update X509.json
AceTheCreator Nov 8, 2023
07c064b
Update SaslPlainSecurityScheme.json
AceTheCreator Nov 8, 2023
5750bb6
Update SaslScramSecurityScheme.json
AceTheCreator Nov 8, 2023
601e209
Update components.json
AceTheCreator Nov 8, 2023
c493bba
Update correlationId.json
AceTheCreator Nov 8, 2023
60e4803
Update externalDocs.json
AceTheCreator Nov 8, 2023
359535e
Update messageObject.json
AceTheCreator Nov 8, 2023
b29cc80
Update messageTrait.json
AceTheCreator Nov 8, 2023
5eda720
Update oauth2Flow.json
AceTheCreator Nov 8, 2023
41991a1
Update oauth2Flows.json
AceTheCreator Nov 8, 2023
2bd7e02
Update operation.json
AceTheCreator Nov 8, 2023
74badf9
Update operationReplyAddress.json
AceTheCreator Nov 8, 2023
391e28f
Update operationTrait.json
AceTheCreator Nov 8, 2023
1c8c66b
Update operations.json
AceTheCreator Nov 8, 2023
f4be1f4
Update parameter.json
AceTheCreator Nov 8, 2023
0a7a8fe
Update parameters.json
AceTheCreator Nov 8, 2023
88d260b
Update server.json
AceTheCreator Nov 8, 2023
6503d49
Update serverVariable.json
AceTheCreator Nov 8, 2023
32c6f17
Update servers.json
AceTheCreator Nov 8, 2023
2a48f05
Update symmetricEncryption.json
AceTheCreator Nov 8, 2023
a2e673d
Update tag.json
AceTheCreator Nov 8, 2023
5b30654
Update userPassword.json
AceTheCreator Nov 8, 2023
17de8e2
Update anySchema.json
AceTheCreator Nov 8, 2023
a1e6abd
Update channel.json
AceTheCreator Nov 8, 2023
58dae68
Update channels.json
AceTheCreator Nov 8, 2023
d7b9c1f
Update contact.json
AceTheCreator Nov 8, 2023
688924b
Update license.json
AceTheCreator Nov 8, 2023
8369438
ci: update of files from global .github repo (#449)
asyncapi-bot Nov 15, 2023
fe18a3c
Merge branch 'asyncapi:master' into v3-description
AceTheCreator Nov 16, 2023
e7ec972
Merge branch 'next-major-spec' into v3-description
AceTheCreator Nov 16, 2023
4e96c5c
revert
AceTheCreator Nov 16, 2023
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
11 changes: 9 additions & 2 deletions definitions/3.0.0/APIKeyHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,37 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"httpApiKey"
]
},
"name": {
"type": "string"
"type": "string",
"description": "The name of the header, query or cookie parameter to be used."
},
"in": {
"type": "string",
"description": "The location of the API key",
"enum": [
"header",
"query",
"cookie"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme. CommonMark syntax MAY be used for rich text representation."
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/APIKeyHTTPSecurityScheme.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/APIKeyHTTPSecurityScheme.json"
Expand Down
8 changes: 6 additions & 2 deletions definitions/3.0.0/BearerHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@
"properties": {
"scheme": {
"type": "string",
"description": "The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235.",
"enum": [
"bearer"
]
},
"bearerFormat": {
"type": "string"
"type": "string",
"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": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"http"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme. CommonMark syntax MAY be used for rich text representation."
}
},
"patternProperties": {
Expand Down
8 changes: 6 additions & 2 deletions definitions/3.0.0/NonBearerHTTPSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"properties": {
"scheme": {
"type": "string",
"description": "A short description for security scheme.",
"enum": [
"bearer"
]
Expand All @@ -17,13 +18,16 @@
],
"properties": {
"scheme": {
"type": "string"
"type": "string",
"description": "The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme."
},
"type": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"http"
]
Expand Down
5 changes: 5 additions & 0 deletions definitions/3.0.0/Reference.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"type": "object",
"description": "A simple object to allow referencing other components in the specification, internally and externally.",
"required": [
"$ref"
],
"properties": {
"$ref": {
"description": "The reference string.",
"$ref": "http://asyncapi.com/definitions/3.0.0/ReferenceObject.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/ReferenceObject.json"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/Reference.json"
}
7 changes: 6 additions & 1 deletion definitions/3.0.0/SaslGssapiSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"gssapi"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme."
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/Sasl.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/SaslGssapiSecurityScheme.json"
Expand Down
9 changes: 7 additions & 2 deletions definitions/3.0.0/SaslPlainSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme. Valid values",
"enum": [
"plain"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme."
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/Sasl.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/SaslPlainSecurityScheme.json"
}
}
9 changes: 7 additions & 2 deletions definitions/3.0.0/SaslScramSecurityScheme.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,26 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"scramSha256",
"scramSha512"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme."
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/Sasl.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/SaslScramSecurityScheme.json"
}
}
4 changes: 4 additions & 0 deletions definitions/3.0.0/SecurityScheme.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"description": "Defines a security scheme that can be used by the operations.",
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/userPassword.json"
Expand Down Expand Up @@ -28,6 +29,9 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/SaslSecurityScheme.json"
}
],
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/SecurityScheme.json"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/SecurityScheme.json"
}
5 changes: 4 additions & 1 deletion definitions/3.0.0/X509.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/X509.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/X509.json"
}
}
30 changes: 15 additions & 15 deletions definitions/3.0.0/anySchema.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"if": {
"required": [
"schema"
]
},
"then": {
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
},
"else": {
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.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.",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/anySchema.json"
}
"if": {
"required": [
"schema"
]
},
"then": {
"$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json"
},
"else": {
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.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.",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/anySchema.json"
}
10 changes: 8 additions & 2 deletions definitions/3.0.0/apiKey.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,33 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme",
"enum": [
"apiKey"
]
},
"in": {
"type": "string",
"description": " The location of the API key.",
"enum": [
"user",
"password"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme. CommonMark syntax MAY be used for rich text representation."
}
},
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json"
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/apiKey.json"
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/apiKey.json"
}
}
4 changes: 3 additions & 1 deletion definitions/3.0.0/asymmetricEncryption.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
"properties": {
"type": {
"type": "string",
"description": "The type of the security scheme.",
"enum": [
"asymmetricEncryption"
]
},
"description": {
"type": "string"
"type": "string",
"description": "A short description for security scheme."
}
},
"patternProperties": {
Expand Down
3 changes: 2 additions & 1 deletion definitions/3.0.0/asyncapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"$ref": "http://asyncapi.com/definitions/3.0.0/servers.json"
},
"defaultContentType": {
"type": "string"
"type": "string",
"description": "Default content type to use when encoding/decoding a message's payload."
},
"channels": {
"$ref": "http://asyncapi.com/definitions/3.0.0/channels.json"
Expand Down
31 changes: 18 additions & 13 deletions definitions/3.0.0/channel.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"type": "object",
"description": "Describes a shared communication channel.",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
Expand Down Expand Up @@ -39,26 +40,27 @@
},
"tags": {
"type": "array",
"description": "A list of tags for logical grouping of channels.",
"items": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/tag.json"
}
]
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/tag.json"
}
]
},
"uniqueItems": true
},
"externalDocs": {
"oneOf": [
{
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json"
}
"$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json"
},
{
"$ref": "http://asyncapi.com/definitions/3.0.0/externalDocs.json"
}
]
},
"bindings": {
Expand All @@ -72,6 +74,9 @@
]
}
},
"example": {
"$ref": "http://asyncapi.com/examples/3.0.0/channel.json"
},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://asyncapi.com/definitions/3.0.0/channel.json"
}
}
1 change: 1 addition & 0 deletions definitions/3.0.0/channelBindingsObject.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"type": "object",
"description": "Map describing protocol-specific definitions for a channel.",
"additionalProperties": false,
"patternProperties": {
"^x-[\\w\\d\\.\\x2d_]+$": {
Expand Down
Loading