Skip to content

Commit 5c4fcb9

Browse files
Add deprecated to namespace (#41)
* feat(ns): add deprecated to shapes ns * 4.3.12
1 parent 79452c6 commit 5c4fcb9

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/amf-helper-mixin",
33
"description": "A mixin with common functions user by most AMF components to compute AMF values",
4-
"version": "4.3.11",
4+
"version": "4.3.12",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",

src/Namespace.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ interface Shapes {
169169
xmlAttribute: string;
170170
xmlWrapped: string;
171171
readOnly: string;
172+
deprecated: string;
172173
}
173174

174175
interface Data {

src/Namespace.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ ns.aml.vocabularies.shapes.xmlName = `${shapesKey}xmlName`;
185185
ns.aml.vocabularies.shapes.xmlAttribute = `${shapesKey}xmlAttribute`;
186186
ns.aml.vocabularies.shapes.xmlWrapped = `${shapesKey}xmlWrapped`;
187187
ns.aml.vocabularies.shapes.readOnly = `${shapesKey}readOnly`;
188+
ns.aml.vocabularies.shapes.deprecated = `${shapesKey}deprecated`;
188189
ns.aml.vocabularies.data = {};
189190
ns.aml.vocabularies.data.key = `${ns.aml.vocabularies.key}data#`;
190191
const dataKey = ns.aml.vocabularies.data.key;

test/amf-helper-mixin.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ describe('AmfHelperMixin', () => {
518518
['xmlAttribute', `${key}xmlAttribute`],
519519
['xmlWrapped', `${key}xmlWrapped`],
520520
['readOnly', `${key}readOnly`],
521+
['deprecated', `${key}deprecated`],
521522
].forEach(([property, value]) => {
522523
it(`has value for ${property}`, () => {
523524
const result = element.ns.aml.vocabularies.shapes[property];

0 commit comments

Comments
 (0)