From 06be511bcabea9e31f5f4b4662d5d78bc93198b5 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 25 Jul 2023 11:24:30 +0000 Subject: [PATCH] chore(release): v6.0.0-next-major-spec.4 --- package-lock.json | 2 +- package.json | 2 +- schemas/3.0.0-without-$id.json | 22 +++++++++++++++++----- schemas/3.0.0.json | 22 +++++++++++++++++----- 4 files changed, 36 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index fda84a7a..ce835882 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/specs", - "version": "6.0.0-next-major-spec.3", + "version": "6.0.0-next-major-spec.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4a646cd1..5e1b21fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/specs", - "version": "6.0.0-next-major-spec.3", + "version": "6.0.0-next-major-spec.4", "description": "AsyncAPI schema versions", "main": "index.js", "types": "index.d.ts", diff --git a/schemas/3.0.0-without-$id.json b/schemas/3.0.0-without-$id.json index bcc022e4..e2511835 100644 --- a/schemas/3.0.0-without-$id.json +++ b/schemas/3.0.0-without-$id.json @@ -3834,16 +3834,28 @@ "type": "string", "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, - "schema": { - "$ref": "#/definitions/schema" + "enum": { + "description": "A list of allowed values for the parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "default": { + "description": "The default value to use for the parameter.", + "type": "string" + }, + "examples": { + "description": "List of example values to use for the parameter.", + "type": "array", + "items": { + "type": "string" + } }, "location": { "type": "string", "description": "A runtime expression that specifies the location of the parameter value", "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "#/definitions/ReferenceObject" } } }, diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 63849e6e..c2bb5181 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -3899,16 +3899,28 @@ "type": "string", "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." }, - "schema": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" + "enum": { + "description": "A list of allowed values for the parameter.", + "type": "array", + "items": { + "type": "string" + } + }, + "default": { + "description": "The default value to use for the parameter.", + "type": "string" + }, + "examples": { + "description": "List of example values to use for the parameter.", + "type": "array", + "items": { + "type": "string" + } }, "location": { "type": "string", "description": "A runtime expression that specifies the location of the parameter value", "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/3.0.0/ReferenceObject.json" } } },