diff --git a/package-lock.json b/package-lock.json index 0545858..d449205 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@api-components/amf-helper-mixin", - "version": "4.5.24", + "version": "4.5.25", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@api-components/amf-helper-mixin", - "version": "4.5.24", + "version": "4.5.25", "license": "Apache-2.0", "dependencies": { "amf-json-ld-lib": "0.0.14" diff --git a/package.json b/package.json index 708ca27..931c027 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@api-components/amf-helper-mixin", "description": "A mixin with common functions user by most AMF components to compute AMF values", - "version": "4.5.24", + "version": "4.5.25", "license": "Apache-2.0", "main": "index.js", "module": "index.js", diff --git a/src/Namespace.d.ts b/src/Namespace.d.ts index b473b73..e1be201 100644 --- a/src/Namespace.d.ts +++ b/src/Namespace.d.ts @@ -134,6 +134,7 @@ interface ApiContract { expects: string; examples: string; supportedOperation: string; + messageId: string; statusCode: string; method: string; required: string; @@ -154,6 +155,7 @@ interface ApiContract { explode: string; allowReserved: string; tag: string; + tags: string; } interface ApiBinding { @@ -256,7 +258,7 @@ interface Vocabularies { core: Readonly; security: Readonly; apiContract: Readonly; - apiBinding: Readonly + apiBinding: Readonly; shapes: Readonly; data: Readonly; docSourceMaps: Readonly; diff --git a/src/Namespace.js b/src/Namespace.js index d58e433..4bf8d2b 100644 --- a/src/Namespace.js +++ b/src/Namespace.js @@ -155,6 +155,7 @@ ns.aml.vocabularies.apiContract.response = `${contractKey}response`; ns.aml.vocabularies.apiContract.returns = `${contractKey}returns`; ns.aml.vocabularies.apiContract.expects = `${contractKey}expects`; ns.aml.vocabularies.apiContract.examples = `${contractKey}examples`; +ns.aml.vocabularies.apiContract.messageId = `${contractKey}messageId`; ns.aml.vocabularies.apiContract.supportedOperation = `${contractKey}supportedOperation`; ns.aml.vocabularies.apiContract.statusCode = `${contractKey}statusCode`; ns.aml.vocabularies.apiContract.method = `${contractKey}method`; @@ -176,6 +177,7 @@ ns.aml.vocabularies.apiContract.style = `${contractKey}style`; ns.aml.vocabularies.apiContract.explode = `${contractKey}explode`; ns.aml.vocabularies.apiContract.allowReserved = `${contractKey}allowReserved`; ns.aml.vocabularies.apiContract.tag = `${contractKey}tag`; +ns.aml.vocabularies.apiContract.tags = `${contractKey}tags`; ns.aml.vocabularies.shapes = {}; ns.aml.vocabularies.shapes.key = `${ns.aml.vocabularies.key}shapes#`; const shapesKey = ns.aml.vocabularies.shapes.key;