@swagger-api/apidom-ns-api-design-systems 0.77.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import stampit from 'stampit';
2
- import { pathSatisfies, path, pick, pipe, keys } from 'ramda';
2
+ import { pathSatisfies, path, pick } from 'ramda';
3
3
  import { isFunction, isUndefined } from 'ramda-adjunct';
4
4
  import { visit, cloneDeep } from '@swagger-api/apidom-core';
5
5
  import { keyMap, getNodeType } from "../../traversal/visitor.mjs";
@@ -23,7 +23,11 @@ const SpecificationVisitor = stampit(Visitor, {
23
23
  return pick(['namespace', 'specObj'], this);
24
24
  },
25
25
  retrieveFixedFields(specPath) {
26
- return pipe(path(['visitors', ...specPath, 'fixedFields']), keys)(this.specObj);
26
+ const fixedFields = path(['visitors', ...specPath, 'fixedFields'], this.specObj);
27
+ if (typeof fixedFields === 'object' && fixedFields !== null) {
28
+ return Object.keys(fixedFields);
29
+ }
30
+ return [];
27
31
  },
28
32
  retrieveVisitor(specPath) {
29
33
  if (pathSatisfies(isFunction, ['visitors', ...specPath], this.specObj)) {
@@ -9,7 +9,7 @@ const makeMessage = (value, requirementLevel, standardIdentifier) => {
9
9
  if (toValue(requirementLevel) === 'may') {
10
10
  return `"${primitiveValue}" not allowed for subject ${primitiveStandardIdentifier}`;
11
11
  }
12
- throw new NotImplementedError('[Requirement levels] other than "may" are currently not implemented.');
12
+ throw new NotImplementedError('[Requirement levels] other than "may" are not yet implemented.');
13
13
  };
14
14
 
15
15
  // @ts-ignore
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-ns-api-design-systems",
3
3
  "description": "API Design Systems 2021-05-07 namespace for ApiDOM.",
4
- "version": "0.77.0",
4
+ "version": "0.78.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org"
@@ -42,10 +42,10 @@
42
42
  "license": "Apache-2.0",
43
43
  "dependencies": {
44
44
  "@babel/runtime-corejs3": "^7.20.7",
45
- "@swagger-api/apidom-core": "^0.77.0",
46
- "@swagger-api/apidom-error": "^0.77.0",
47
- "@swagger-api/apidom-ns-openapi-3-1": "^0.77.0",
48
- "@types/ramda": "~0.29.3",
45
+ "@swagger-api/apidom-core": "^0.78.0",
46
+ "@swagger-api/apidom-error": "^0.78.0",
47
+ "@swagger-api/apidom-ns-openapi-3-1": "^0.78.0",
48
+ "@types/ramda": "~0.29.6",
49
49
  "ramda": "~0.29.0",
50
50
  "ramda-adjunct": "^4.1.1",
51
51
  "stampit": "^4.3.2"
@@ -60,5 +60,5 @@
60
60
  "README.md",
61
61
  "CHANGELOG.md"
62
62
  ],
63
- "gitHead": "cd8a9d7d2ea8bb8c335c23cd4632830a79c426c9"
63
+ "gitHead": "d6587217f8a7bec5bbc49ca4dabff8d3d66e0913"
64
64
  }