@speclynx/apidom-ls 2.11.7 → 2.12.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.
Files changed (182) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/apidom-ls.browser.min.js +3 -3
  3. package/package.json +35 -30
  4. package/src/config/arazzo/arazzoSpecification1/lint/$self--format-uri.cjs +23 -0
  5. package/src/config/arazzo/arazzoSpecification1/lint/$self--format-uri.mjs +16 -0
  6. package/src/config/arazzo/arazzoSpecification1/lint/$self--no-fragment.cjs +23 -0
  7. package/src/config/arazzo/arazzoSpecification1/lint/$self--no-fragment.mjs +16 -0
  8. package/src/config/arazzo/arazzoSpecification1/lint/$self--type.cjs +23 -0
  9. package/src/config/arazzo/arazzoSpecification1/lint/$self--type.mjs +16 -0
  10. package/src/config/arazzo/arazzoSpecification1/lint/{allowed-fields.cjs → allowed-fields-1-0.cjs} +4 -3
  11. package/src/config/arazzo/arazzoSpecification1/lint/{allowed-fields.mjs → allowed-fields-1-0.mjs} +4 -4
  12. package/src/config/arazzo/arazzoSpecification1/lint/allowed-fields-1-1.cjs +21 -0
  13. package/src/config/arazzo/arazzoSpecification1/lint/allowed-fields-1-1.mjs +14 -0
  14. package/src/config/arazzo/arazzoSpecification1/lint/arazzo--pattern.cjs +2 -2
  15. package/src/config/arazzo/arazzoSpecification1/lint/arazzo--pattern.mjs +2 -2
  16. package/src/config/arazzo/arazzoSpecification1/lint/index.cjs +6 -2
  17. package/src/config/arazzo/arazzoSpecification1/lint/index.mjs +6 -2
  18. package/src/config/arazzo/config.cjs +6 -4
  19. package/src/config/arazzo/config.mjs +4 -2
  20. package/src/config/arazzo/criterion/lint/type--equals.cjs +1 -1
  21. package/src/config/arazzo/criterion/lint/type--equals.mjs +1 -1
  22. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/index.cjs +7 -3
  23. package/src/config/arazzo/expressionType/lint/index.mjs +12 -0
  24. package/src/config/arazzo/{criterionExpressionType/lint/type--equals.cjs → expressionType/lint/type--equals-1-0.cjs} +5 -4
  25. package/src/config/arazzo/{criterionExpressionType/lint/type--equals.mjs → expressionType/lint/type--equals-1-0.mjs} +5 -5
  26. package/src/config/arazzo/expressionType/lint/type--equals-1-1.cjs +23 -0
  27. package/src/config/arazzo/expressionType/lint/type--equals-1-1.mjs +16 -0
  28. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--required.cjs +1 -1
  29. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--required.mjs +1 -1
  30. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--type.cjs +1 -1
  31. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--type.mjs +1 -1
  32. package/src/config/arazzo/expressionType/lint/version--equals-jsonpath.cjs +30 -0
  33. package/src/config/arazzo/expressionType/lint/version--equals-jsonpath.mjs +23 -0
  34. package/src/config/arazzo/expressionType/lint/version--equals-jsonpointer.cjs +30 -0
  35. package/src/config/arazzo/expressionType/lint/version--equals-jsonpointer.mjs +23 -0
  36. package/src/config/arazzo/expressionType/lint/version--equals-xpath.cjs +30 -0
  37. package/src/config/arazzo/expressionType/lint/version--equals-xpath.mjs +23 -0
  38. package/src/config/arazzo/{criterionExpressionType/lint/version--required.cjs → expressionType/lint/version--required-1-0.cjs} +9 -4
  39. package/src/config/arazzo/expressionType/lint/version--required-1-0.mjs +26 -0
  40. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/version--type.cjs +1 -1
  41. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/version--type.mjs +1 -1
  42. package/src/config/arazzo/failureAction/lint/allowed-fields-1-0.cjs +27 -0
  43. package/src/config/arazzo/failureAction/lint/allowed-fields-1-0.mjs +19 -0
  44. package/src/config/arazzo/failureAction/lint/{allowed-fields.cjs → allowed-fields-1-1.cjs} +4 -4
  45. package/src/config/arazzo/failureAction/lint/{allowed-fields.mjs → allowed-fields-1-1.mjs} +5 -5
  46. package/src/config/arazzo/failureAction/lint/index.cjs +8 -2
  47. package/src/config/arazzo/failureAction/lint/index.mjs +8 -2
  48. package/src/config/arazzo/failureAction/lint/parameters--only-workflow-id.cjs +28 -0
  49. package/src/config/arazzo/failureAction/lint/parameters--only-workflow-id.mjs +21 -0
  50. package/src/config/arazzo/failureAction/lint/parameters--type.cjs +23 -0
  51. package/src/config/arazzo/failureAction/lint/parameters--type.mjs +16 -0
  52. package/src/config/arazzo/failureAction/lint/step-id--pattern.cjs +26 -0
  53. package/src/config/arazzo/failureAction/lint/step-id--pattern.mjs +18 -0
  54. package/src/config/arazzo/failureAction/lint/workflow-id--pattern.cjs +35 -0
  55. package/src/config/arazzo/failureAction/lint/workflow-id--pattern.mjs +27 -0
  56. package/src/config/arazzo/failureAction/lint/workflow-id--source-type-consistency.cjs +23 -0
  57. package/src/config/arazzo/failureAction/lint/workflow-id--source-type-consistency.mjs +16 -0
  58. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-0.cjs +23 -0
  59. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-0.mjs +15 -0
  60. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-1.cjs +21 -0
  61. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-1.mjs +14 -0
  62. package/src/config/arazzo/payloadReplacement/lint/index.cjs +5 -2
  63. package/src/config/arazzo/payloadReplacement/lint/index.mjs +5 -2
  64. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--equals.cjs +30 -0
  65. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--equals.mjs +23 -0
  66. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--type.cjs +31 -0
  67. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--type.mjs +24 -0
  68. package/src/config/arazzo/{payloadReplacement → selector}/lint/allowed-fields.cjs +2 -2
  69. package/src/config/arazzo/{payloadReplacement → selector}/lint/allowed-fields.mjs +3 -3
  70. package/src/config/arazzo/selector/lint/context--type.cjs +23 -0
  71. package/src/config/arazzo/selector/lint/context--type.mjs +16 -0
  72. package/src/config/arazzo/selector/lint/index.cjs +18 -0
  73. package/src/config/arazzo/selector/lint/index.mjs +10 -0
  74. package/src/config/arazzo/selector/lint/selector--type.cjs +23 -0
  75. package/src/config/arazzo/selector/lint/selector--type.mjs +16 -0
  76. package/src/config/arazzo/selector/lint/type--equals.cjs +30 -0
  77. package/src/config/arazzo/selector/lint/type--equals.mjs +23 -0
  78. package/src/config/arazzo/selector/lint/type--type.cjs +31 -0
  79. package/src/config/arazzo/selector/lint/type--type.mjs +24 -0
  80. package/src/config/arazzo/selector/meta.cjs +12 -0
  81. package/src/config/arazzo/selector/meta.mjs +5 -0
  82. package/src/config/arazzo/sourceDescription/lint/index.cjs +3 -2
  83. package/src/config/arazzo/sourceDescription/lint/index.mjs +3 -2
  84. package/src/config/arazzo/sourceDescription/lint/name--pattern.cjs +2 -2
  85. package/src/config/arazzo/sourceDescription/lint/name--pattern.mjs +2 -2
  86. package/src/config/arazzo/sourceDescription/lint/{type--equals.cjs → type--equals-1-0.cjs} +3 -3
  87. package/src/config/arazzo/sourceDescription/lint/{type--equals.mjs → type--equals-1-0.mjs} +4 -4
  88. package/src/config/arazzo/sourceDescription/lint/type--equals-1-1.cjs +23 -0
  89. package/src/config/arazzo/sourceDescription/lint/type--equals-1-1.mjs +16 -0
  90. package/src/config/arazzo/step/lint/action--equals.cjs +23 -0
  91. package/src/config/arazzo/step/lint/action--equals.mjs +16 -0
  92. package/src/config/arazzo/step/lint/action--type.cjs +23 -0
  93. package/src/config/arazzo/step/lint/action--type.mjs +16 -0
  94. package/src/config/arazzo/step/lint/{allowed-fields.cjs → allowed-fields-1-0.cjs} +5 -3
  95. package/src/config/arazzo/step/lint/{allowed-fields.mjs → allowed-fields-1-0.mjs} +5 -4
  96. package/src/config/arazzo/step/lint/allowed-fields-1-1.cjs +21 -0
  97. package/src/config/arazzo/step/lint/allowed-fields-1-1.mjs +14 -0
  98. package/src/config/arazzo/step/lint/channel-path--mutually-exclusive.cjs +28 -0
  99. package/src/config/arazzo/step/lint/channel-path--mutually-exclusive.mjs +21 -0
  100. package/src/config/arazzo/step/lint/channel-path--type.cjs +23 -0
  101. package/src/config/arazzo/step/lint/channel-path--type.mjs +16 -0
  102. package/src/config/arazzo/step/lint/correlation-id--only-action-receive.cjs +34 -0
  103. package/src/config/arazzo/step/lint/correlation-id--only-action-receive.mjs +26 -0
  104. package/src/config/arazzo/step/lint/correlation-id--requires-action.cjs +30 -0
  105. package/src/config/arazzo/step/lint/correlation-id--requires-action.mjs +22 -0
  106. package/src/config/arazzo/step/lint/depends-on--resolved.cjs +32 -0
  107. package/src/config/arazzo/step/lint/depends-on--resolved.mjs +24 -0
  108. package/src/config/arazzo/step/lint/depends-on--source-type-consistency.cjs +23 -0
  109. package/src/config/arazzo/step/lint/depends-on--source-type-consistency.mjs +16 -0
  110. package/src/config/arazzo/step/lint/depends-on--type.cjs +23 -0
  111. package/src/config/arazzo/step/lint/depends-on--type.mjs +16 -0
  112. package/src/config/arazzo/step/lint/depends-on--unique.cjs +23 -0
  113. package/src/config/arazzo/step/lint/depends-on--unique.mjs +16 -0
  114. package/src/config/arazzo/step/lint/index.cjs +20 -3
  115. package/src/config/arazzo/step/lint/index.mjs +20 -3
  116. package/src/config/arazzo/step/lint/operation-id--mutually-exclusive.cjs +2 -2
  117. package/src/config/arazzo/step/lint/operation-id--mutually-exclusive.mjs +2 -2
  118. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-0.cjs +25 -0
  119. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-0.mjs +17 -0
  120. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-1.cjs +23 -0
  121. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-1.mjs +16 -0
  122. package/src/config/arazzo/step/lint/operation-path--mutually-exclusive.cjs +2 -2
  123. package/src/config/arazzo/step/lint/operation-path--mutually-exclusive.mjs +2 -2
  124. package/src/config/arazzo/step/lint/{outputs--values-type.cjs → outputs--values-type-1-0.cjs} +5 -3
  125. package/src/config/arazzo/step/lint/{outputs--values-type.mjs → outputs--values-type-1-0.mjs} +5 -4
  126. package/src/config/arazzo/step/lint/outputs--values-type-1-1.cjs +24 -0
  127. package/src/config/arazzo/step/lint/outputs--values-type-1-1.mjs +16 -0
  128. package/src/config/arazzo/step/lint/step-id--pattern.cjs +2 -2
  129. package/src/config/arazzo/step/lint/step-id--pattern.mjs +2 -2
  130. package/src/config/arazzo/step/lint/timeout--type.cjs +23 -0
  131. package/src/config/arazzo/step/lint/timeout--type.mjs +16 -0
  132. package/src/config/arazzo/step/lint/workflow-id--mutually-exclusive.cjs +2 -2
  133. package/src/config/arazzo/step/lint/workflow-id--mutually-exclusive.mjs +2 -2
  134. package/src/config/arazzo/step/lint/workflow-id--pattern.cjs +34 -0
  135. package/src/config/arazzo/step/lint/workflow-id--pattern.mjs +26 -0
  136. package/src/config/arazzo/step/lint/workflow-id--source-type-consistency.cjs +23 -0
  137. package/src/config/arazzo/step/lint/workflow-id--source-type-consistency.mjs +16 -0
  138. package/src/config/arazzo/successAction/lint/{allowed-fields.cjs → allowed-fields-1-0.cjs} +5 -3
  139. package/src/config/arazzo/successAction/lint/{allowed-fields.mjs → allowed-fields-1-0.mjs} +5 -4
  140. package/src/config/arazzo/successAction/lint/allowed-fields-1-1.cjs +25 -0
  141. package/src/config/arazzo/successAction/lint/allowed-fields-1-1.mjs +18 -0
  142. package/src/config/arazzo/successAction/lint/index.cjs +8 -2
  143. package/src/config/arazzo/successAction/lint/index.mjs +8 -2
  144. package/src/config/arazzo/successAction/lint/parameters--only-workflow-id.cjs +28 -0
  145. package/src/config/arazzo/successAction/lint/parameters--only-workflow-id.mjs +21 -0
  146. package/src/config/arazzo/successAction/lint/parameters--type.cjs +23 -0
  147. package/src/config/arazzo/successAction/lint/parameters--type.mjs +16 -0
  148. package/src/config/arazzo/successAction/lint/step-id--pattern.cjs +26 -0
  149. package/src/config/arazzo/successAction/lint/step-id--pattern.mjs +18 -0
  150. package/src/config/arazzo/successAction/lint/workflow-id--pattern.cjs +35 -0
  151. package/src/config/arazzo/successAction/lint/workflow-id--pattern.mjs +27 -0
  152. package/src/config/arazzo/successAction/lint/workflow-id--source-type-consistency.cjs +23 -0
  153. package/src/config/arazzo/successAction/lint/workflow-id--source-type-consistency.mjs +16 -0
  154. package/src/config/arazzo/target-specs.cjs +33 -5
  155. package/src/config/arazzo/target-specs.mjs +32 -4
  156. package/src/config/arazzo/workflow/lint/depends-on--source-type-consistency.cjs +23 -0
  157. package/src/config/arazzo/workflow/lint/depends-on--source-type-consistency.mjs +16 -0
  158. package/src/config/arazzo/workflow/lint/index.cjs +4 -2
  159. package/src/config/arazzo/workflow/lint/index.mjs +4 -2
  160. package/src/config/arazzo/workflow/lint/{outputs--values-type.cjs → outputs--values-type-1-0.cjs} +5 -3
  161. package/src/config/arazzo/workflow/lint/{outputs--values-type.mjs → outputs--values-type-1-0.mjs} +5 -4
  162. package/src/config/arazzo/workflow/lint/outputs--values-type-1-1.cjs +24 -0
  163. package/src/config/arazzo/workflow/lint/outputs--values-type-1-1.mjs +16 -0
  164. package/src/config/arazzo/workflow/lint/workflow-id--pattern.cjs +2 -2
  165. package/src/config/arazzo/workflow/lint/workflow-id--pattern.mjs +2 -2
  166. package/src/config/codes.cjs +50 -7
  167. package/src/config/codes.mjs +50 -7
  168. package/src/index.cjs +7 -0
  169. package/src/index.mjs +1 -0
  170. package/src/services/validation/linter-functions.cjs +150 -1
  171. package/src/services/validation/linter-functions.mjs +151 -2
  172. package/src/services/validation/providers/arazzo-11-json-schema-validation-provider.cjs +852 -0
  173. package/src/services/validation/providers/arazzo-11-json-schema-validation-provider.mjs +845 -0
  174. package/src/services/validation/validation-service.cjs +7 -1
  175. package/src/services/validation/validation-service.mjs +7 -1
  176. package/types/apidom-ls.d.ts +82 -7
  177. package/src/config/arazzo/criterionExpressionType/lint/index.mjs +0 -8
  178. package/src/config/arazzo/criterionExpressionType/lint/version--required.mjs +0 -22
  179. /package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/allowed-fields.cjs +0 -0
  180. /package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/allowed-fields.mjs +0 -0
  181. /package/src/config/arazzo/{criterionExpressionType → expressionType}/meta.cjs +0 -0
  182. /package/src/config/arazzo/{criterionExpressionType → expressionType}/meta.mjs +0 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ const parametersOnlyWorkflowIdLint = {
12
+ code: _codes.default.ARAZZO_SUCCESS_ACTION_FIELD_PARAMETERS_ONLY_WORKFLOW_ID,
13
+ source: 'apilint',
14
+ message: 'parameters only applies when workflowId is set',
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Warning,
16
+ linterFunction: 'hasRequiredField',
17
+ linterParams: ['workflowId'],
18
+ marker: 'key',
19
+ markerTarget: 'parameters',
20
+ conditions: [{
21
+ function: 'missingField',
22
+ params: ['parameters'],
23
+ negate: true
24
+ }],
25
+ data: {},
26
+ targetSpecs: [..._targetSpecs.Arazzo11]
27
+ };
28
+ var _default = exports.default = parametersOnlyWorkflowIdLint;
@@ -0,0 +1,21 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo11 } from "../../target-specs.mjs";
4
+ const parametersOnlyWorkflowIdLint = {
5
+ code: ApilintCodes.ARAZZO_SUCCESS_ACTION_FIELD_PARAMETERS_ONLY_WORKFLOW_ID,
6
+ source: 'apilint',
7
+ message: 'parameters only applies when workflowId is set',
8
+ severity: DiagnosticSeverity.Warning,
9
+ linterFunction: 'hasRequiredField',
10
+ linterParams: ['workflowId'],
11
+ marker: 'key',
12
+ markerTarget: 'parameters',
13
+ conditions: [{
14
+ function: 'missingField',
15
+ params: ['parameters'],
16
+ negate: true
17
+ }],
18
+ data: {},
19
+ targetSpecs: [...Arazzo11]
20
+ };
21
+ export default parametersOnlyWorkflowIdLint;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ const parametersTypeLint = {
12
+ code: _codes.default.ARAZZO_SUCCESS_ACTION_FIELD_PARAMETERS_TYPE,
13
+ source: 'apilint',
14
+ message: 'parameters must be an array of Parameter or Reusable Objects',
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
+ linterFunction: 'apilintArrayOfElementsOrClasses',
17
+ linterParams: [['parameter', 'reusable']],
18
+ marker: 'key',
19
+ target: 'parameters',
20
+ data: {},
21
+ targetSpecs: [..._targetSpecs.Arazzo11]
22
+ };
23
+ var _default = exports.default = parametersTypeLint;
@@ -0,0 +1,16 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo11 } from "../../target-specs.mjs";
4
+ const parametersTypeLint = {
5
+ code: ApilintCodes.ARAZZO_SUCCESS_ACTION_FIELD_PARAMETERS_TYPE,
6
+ source: 'apilint',
7
+ message: 'parameters must be an array of Parameter or Reusable Objects',
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'apilintArrayOfElementsOrClasses',
10
+ linterParams: [['parameter', 'reusable']],
11
+ marker: 'key',
12
+ target: 'parameters',
13
+ data: {},
14
+ targetSpecs: [...Arazzo11]
15
+ };
16
+ export default parametersTypeLint;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ // Unlike workflowId, a successAction's stepId is always local (MUST be within the current
12
+ // workflow, per spec) - it has no $sourceDescriptions. runtime-expression form, so no $-guard is
13
+ // needed here.
14
+ const stepIdPatternLint = {
15
+ code: _codes.default.ARAZZO_SUCCESS_ACTION_FIELD_STEP_ID_PATTERN,
16
+ source: 'apilint',
17
+ message: 'stepId SHOULD match the pattern [A-Za-z0-9_\\-]+',
18
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Warning,
19
+ linterFunction: 'apilintValueRegex',
20
+ linterParams: ['^[A-Za-z0-9_\\-]+$'],
21
+ marker: 'value',
22
+ target: 'stepId',
23
+ data: {},
24
+ targetSpecs: [..._targetSpecs.Arazzo]
25
+ };
26
+ var _default = exports.default = stepIdPatternLint;
@@ -0,0 +1,18 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo } from "../../target-specs.mjs"; // Unlike workflowId, a successAction's stepId is always local (MUST be within the current
4
+ // workflow, per spec) - it has no $sourceDescriptions. runtime-expression form, so no $-guard is
5
+ // needed here.
6
+ const stepIdPatternLint = {
7
+ code: ApilintCodes.ARAZZO_SUCCESS_ACTION_FIELD_STEP_ID_PATTERN,
8
+ source: 'apilint',
9
+ message: 'stepId SHOULD match the pattern [A-Za-z0-9_\\-]+',
10
+ severity: DiagnosticSeverity.Warning,
11
+ linterFunction: 'apilintValueRegex',
12
+ linterParams: ['^[A-Za-z0-9_\\-]+$'],
13
+ marker: 'value',
14
+ target: 'stepId',
15
+ data: {},
16
+ targetSpecs: [...Arazzo]
17
+ };
18
+ export default stepIdPatternLint;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ // Unlike the Workflow Object's own `workflowId`, a successAction's `workflowId` reference MAY
12
+ // instead be a `$sourceDescriptions.` Runtime Expression when it points at an external Arazzo
13
+ // document (see workflow-id--resolved.ts) - so this pattern only applies to the plain, local-id
14
+ // form.
15
+ const workflowIdPatternLint = {
16
+ code: _codes.default.ARAZZO_SUCCESS_ACTION_FIELD_WORKFLOW_ID_PATTERN,
17
+ source: 'apilint',
18
+ message: 'workflowId SHOULD match the pattern [A-Za-z0-9_\\-]+',
19
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Warning,
20
+ linterFunction: 'apilintValueRegex',
21
+ linterParams: ['^[A-Za-z0-9_\\-]+$'],
22
+ marker: 'value',
23
+ target: 'workflowId',
24
+ conditions: [{
25
+ targets: [{
26
+ path: 'workflowId'
27
+ }],
28
+ function: 'apilintValueRegex',
29
+ params: ['^\\$'],
30
+ negate: true
31
+ }],
32
+ data: {},
33
+ targetSpecs: [..._targetSpecs.Arazzo]
34
+ };
35
+ var _default = exports.default = workflowIdPatternLint;
@@ -0,0 +1,27 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo } from "../../target-specs.mjs"; // Unlike the Workflow Object's own `workflowId`, a successAction's `workflowId` reference MAY
4
+ // instead be a `$sourceDescriptions.` Runtime Expression when it points at an external Arazzo
5
+ // document (see workflow-id--resolved.ts) - so this pattern only applies to the plain, local-id
6
+ // form.
7
+ const workflowIdPatternLint = {
8
+ code: ApilintCodes.ARAZZO_SUCCESS_ACTION_FIELD_WORKFLOW_ID_PATTERN,
9
+ source: 'apilint',
10
+ message: 'workflowId SHOULD match the pattern [A-Za-z0-9_\\-]+',
11
+ severity: DiagnosticSeverity.Warning,
12
+ linterFunction: 'apilintValueRegex',
13
+ linterParams: ['^[A-Za-z0-9_\\-]+$'],
14
+ marker: 'value',
15
+ target: 'workflowId',
16
+ conditions: [{
17
+ targets: [{
18
+ path: 'workflowId'
19
+ }],
20
+ function: 'apilintValueRegex',
21
+ params: ['^\\$'],
22
+ negate: true
23
+ }],
24
+ data: {},
25
+ targetSpecs: [...Arazzo]
26
+ };
27
+ export default workflowIdPatternLint;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ const workflowIdSourceTypeConsistencyLint = {
12
+ code: _codes.default.ARAZZO_SUCCESS_ACTION_FIELD_WORKFLOW_ID_SOURCE_TYPE,
13
+ source: 'apilint',
14
+ message: "workflowId references a sourceDescription that is not of type 'arazzo'",
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
+ linterFunction: 'apilintArazzoSourceDescriptionTypeConsistency',
17
+ linterParams: [['arazzo']],
18
+ marker: 'value',
19
+ target: 'workflowId',
20
+ data: {},
21
+ targetSpecs: [..._targetSpecs.Arazzo]
22
+ };
23
+ var _default = exports.default = workflowIdSourceTypeConsistencyLint;
@@ -0,0 +1,16 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo } from "../../target-specs.mjs";
4
+ const workflowIdSourceTypeConsistencyLint = {
5
+ code: ApilintCodes.ARAZZO_SUCCESS_ACTION_FIELD_WORKFLOW_ID_SOURCE_TYPE,
6
+ source: 'apilint',
7
+ message: "workflowId references a sourceDescription that is not of type 'arazzo'",
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'apilintArazzoSourceDescriptionTypeConsistency',
10
+ linterParams: [['arazzo']],
11
+ marker: 'value',
12
+ target: 'workflowId',
13
+ data: {},
14
+ targetSpecs: [...Arazzo]
15
+ };
16
+ export default workflowIdSourceTypeConsistencyLint;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Arazzo10X = exports.Arazzo101 = exports.Arazzo100 = exports.Arazzo10 = exports.Arazzo1 = exports.Arazzo = void 0;
6
+ exports.Arazzo11X = exports.Arazzo110 = exports.Arazzo11 = exports.Arazzo10X = exports.Arazzo101 = exports.Arazzo100 = exports.Arazzo10 = exports.Arazzo1 = exports.Arazzo = void 0;
7
7
  /**
8
8
  * @public
9
9
  */
@@ -22,20 +22,48 @@ const Arazzo101 = exports.Arazzo101 = [{
22
22
  /**
23
23
  * @public
24
24
  */
25
- const Arazzo10 = exports.Arazzo10 = [...Arazzo100, ...Arazzo101];
25
+ const Arazzo10X = exports.Arazzo10X = [{
26
+ namespace: 'arazzo',
27
+ version: '1.0.x'
28
+ }];
26
29
 
27
30
  /**
28
31
  * @public
29
32
  */
30
- const Arazzo10X = exports.Arazzo10X = [{
33
+ // `Arazzo10X`'s `1.0.x` prefix-matches every 1.0 patch version (`matchesTargetSpecs` treats an
34
+ // `x`-suffixed version as a prefix match), which already subsumes the exact `Arazzo100`/
35
+ // `Arazzo101` entries - they're kept as separate exported constants for API compatibility, but
36
+ // not spread in here since they'd add nothing `Arazzo10X` doesn't already match. Every
37
+ // version-split (`-1-0.ts`) rule targets this constant (or the `Arazzo`/`Arazzo1` aggregate that
38
+ // includes it), specifically so it doesn't go dark for an unenumerated 1.0.x document.
39
+ const Arazzo10 = exports.Arazzo10 = [...Arazzo10X];
40
+
41
+ /**
42
+ * @public
43
+ */
44
+ const Arazzo110 = exports.Arazzo110 = [{
31
45
  namespace: 'arazzo',
32
- version: '1.0.x'
46
+ version: '1.1.0'
33
47
  }];
34
48
 
35
49
  /**
36
50
  * @public
37
51
  */
38
- const Arazzo1 = exports.Arazzo1 = [...Arazzo10];
52
+ const Arazzo11X = exports.Arazzo11X = [{
53
+ namespace: 'arazzo',
54
+ version: '1.1.x'
55
+ }];
56
+
57
+ /**
58
+ * @public
59
+ */
60
+ // Same rationale as `Arazzo10` above, for the 1.1 line.
61
+ const Arazzo11 = exports.Arazzo11 = [...Arazzo11X];
62
+
63
+ /**
64
+ * @public
65
+ */
66
+ const Arazzo1 = exports.Arazzo1 = [...Arazzo10, ...Arazzo11];
39
67
 
40
68
  /**
41
69
  * @public
@@ -16,20 +16,48 @@ export const Arazzo101 = [{
16
16
  /**
17
17
  * @public
18
18
  */
19
- export const Arazzo10 = [...Arazzo100, ...Arazzo101];
19
+ export const Arazzo10X = [{
20
+ namespace: 'arazzo',
21
+ version: '1.0.x'
22
+ }];
20
23
 
21
24
  /**
22
25
  * @public
23
26
  */
24
- export const Arazzo10X = [{
27
+ // `Arazzo10X`'s `1.0.x` prefix-matches every 1.0 patch version (`matchesTargetSpecs` treats an
28
+ // `x`-suffixed version as a prefix match), which already subsumes the exact `Arazzo100`/
29
+ // `Arazzo101` entries - they're kept as separate exported constants for API compatibility, but
30
+ // not spread in here since they'd add nothing `Arazzo10X` doesn't already match. Every
31
+ // version-split (`-1-0.ts`) rule targets this constant (or the `Arazzo`/`Arazzo1` aggregate that
32
+ // includes it), specifically so it doesn't go dark for an unenumerated 1.0.x document.
33
+ export const Arazzo10 = [...Arazzo10X];
34
+
35
+ /**
36
+ * @public
37
+ */
38
+ export const Arazzo110 = [{
25
39
  namespace: 'arazzo',
26
- version: '1.0.x'
40
+ version: '1.1.0'
27
41
  }];
28
42
 
29
43
  /**
30
44
  * @public
31
45
  */
32
- export const Arazzo1 = [...Arazzo10];
46
+ export const Arazzo11X = [{
47
+ namespace: 'arazzo',
48
+ version: '1.1.x'
49
+ }];
50
+
51
+ /**
52
+ * @public
53
+ */
54
+ // Same rationale as `Arazzo10` above, for the 1.1 line.
55
+ export const Arazzo11 = [...Arazzo11X];
56
+
57
+ /**
58
+ * @public
59
+ */
60
+ export const Arazzo1 = [...Arazzo10, ...Arazzo11];
33
61
 
34
62
  /**
35
63
  * @public
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ const dependsOnSourceTypeConsistencyLint = {
12
+ code: _codes.default.ARAZZO_WORKFLOW_FIELD_DEPENDS_ON_SOURCE_TYPE,
13
+ source: 'apilint',
14
+ message: "dependsOn entry references a sourceDescription that is not of type 'arazzo'",
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
+ linterFunction: 'apilintArazzoArraySourceDescriptionTypeConsistency',
17
+ linterParams: [['arazzo']],
18
+ marker: 'value',
19
+ target: 'dependsOn',
20
+ data: {},
21
+ targetSpecs: [..._targetSpecs.Arazzo]
22
+ };
23
+ var _default = exports.default = dependsOnSourceTypeConsistencyLint;
@@ -0,0 +1,16 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo } from "../../target-specs.mjs";
4
+ const dependsOnSourceTypeConsistencyLint = {
5
+ code: ApilintCodes.ARAZZO_WORKFLOW_FIELD_DEPENDS_ON_SOURCE_TYPE,
6
+ source: 'apilint',
7
+ message: "dependsOn entry references a sourceDescription that is not of type 'arazzo'",
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'apilintArazzoArraySourceDescriptionTypeConsistency',
10
+ linterParams: [['arazzo']],
11
+ marker: 'value',
12
+ target: 'dependsOn',
13
+ data: {},
14
+ targetSpecs: [...Arazzo]
15
+ };
16
+ export default dependsOnSourceTypeConsistencyLint;
@@ -21,15 +21,17 @@ var _successActionsType = _interopRequireDefault(require("./success-actions--typ
21
21
  var _failureActionsType = _interopRequireDefault(require("./failure-actions--type.cjs"));
22
22
  var _outputsType = _interopRequireDefault(require("./outputs--type.cjs"));
23
23
  var _outputsKeysPattern = _interopRequireDefault(require("./outputs--keys-pattern.cjs"));
24
- var _outputsValuesType = _interopRequireDefault(require("./outputs--values-type.cjs"));
24
+ var _outputsValuesType = _interopRequireDefault(require("./outputs--values-type-1-0.cjs"));
25
+ var _outputsValuesType2 = _interopRequireDefault(require("./outputs--values-type-1-1.cjs"));
25
26
  var _parametersType = _interopRequireDefault(require("./parameters--type.cjs"));
26
27
  var _descriptionRecommended = _interopRequireDefault(require("./description--recommended.cjs"));
27
28
  var _summaryRecommended = _interopRequireDefault(require("./summary--recommended.cjs"));
28
29
  var _workflowIdUnique = _interopRequireDefault(require("./workflow-id--unique.cjs"));
29
30
  var _dependsOnUnique = _interopRequireDefault(require("./depends-on--unique.cjs"));
30
31
  var _dependsOnResolved = _interopRequireDefault(require("./depends-on--resolved.cjs"));
32
+ var _dependsOnSourceTypeConsistency = _interopRequireDefault(require("./depends-on--source-type-consistency.cjs"));
31
33
  var _outputsNamesUnique = _interopRequireDefault(require("./outputs--names-unique.cjs"));
32
34
  var _outputsValuesRuntimeExpression = _interopRequireDefault(require("./outputs--values-runtime-expression.cjs"));
33
35
  var _allowedFields = _interopRequireDefault(require("./allowed-fields.cjs"));
34
- const lints = [_workflowIdRequired.default, _workflowIdType.default, _workflowIdPattern.default, _workflowIdUnique.default, _summaryType.default, _summaryNoScriptTags.default, _summaryRecommended.default, _descriptionType.default, _descriptionNoScriptTags.default, _descriptionRecommended.default, _inputsType.default, _stepsRequired.default, _stepsType.default, _stepsNonEmpty.default, _dependsOnType.default, _dependsOnUnique.default, _dependsOnResolved.default, _successActionsType.default, _failureActionsType.default, _outputsType.default, _outputsNamesUnique.default, _outputsValuesRuntimeExpression.default, _outputsKeysPattern.default, _outputsValuesType.default, _parametersType.default, _allowedFields.default];
36
+ const lints = [_workflowIdRequired.default, _workflowIdType.default, _workflowIdPattern.default, _workflowIdUnique.default, _summaryType.default, _summaryNoScriptTags.default, _summaryRecommended.default, _descriptionType.default, _descriptionNoScriptTags.default, _descriptionRecommended.default, _inputsType.default, _stepsRequired.default, _stepsType.default, _stepsNonEmpty.default, _dependsOnType.default, _dependsOnUnique.default, _dependsOnResolved.default, _dependsOnSourceTypeConsistency.default, _successActionsType.default, _failureActionsType.default, _outputsType.default, _outputsNamesUnique.default, _outputsValuesRuntimeExpression.default, _outputsKeysPattern.default, _outputsValuesType.default, _outputsValuesType2.default, _parametersType.default, _allowedFields.default];
35
37
  var _default = exports.default = lints;
@@ -14,15 +14,17 @@ import successActionsTypeLint from "./success-actions--type.mjs";
14
14
  import failureActionsTypeLint from "./failure-actions--type.mjs";
15
15
  import outputsTypeLint from "./outputs--type.mjs";
16
16
  import outputsKeysPatternLint from "./outputs--keys-pattern.mjs";
17
- import outputsValuesTypeLint from "./outputs--values-type.mjs";
17
+ import outputsValuesType10Lint from "./outputs--values-type-1-0.mjs";
18
+ import outputsValuesType11Lint from "./outputs--values-type-1-1.mjs";
18
19
  import parametersTypeLint from "./parameters--type.mjs";
19
20
  import descriptionRecommendedLint from "./description--recommended.mjs";
20
21
  import summaryRecommendedLint from "./summary--recommended.mjs";
21
22
  import workflowIdUniqueLint from "./workflow-id--unique.mjs";
22
23
  import dependsOnUniqueLint from "./depends-on--unique.mjs";
23
24
  import dependsOnResolvedLint from "./depends-on--resolved.mjs";
25
+ import dependsOnSourceTypeConsistencyLint from "./depends-on--source-type-consistency.mjs";
24
26
  import outputsNamesUniqueLint from "./outputs--names-unique.mjs";
25
27
  import outputsValuesRuntimeExpressionLint from "./outputs--values-runtime-expression.mjs";
26
28
  import allowedFieldsLint from "./allowed-fields.mjs";
27
- const lints = [workflowIdRequiredLint, workflowIdTypeLint, workflowIdPatternLint, workflowIdUniqueLint, summaryTypeLint, summaryNoScriptTagsLint, summaryRecommendedLint, descriptionTypeLint, descriptionNoScriptTagsLint, descriptionRecommendedLint, inputsTypeLint, stepsRequiredLint, stepsTypeLint, stepsNonEmptyLint, dependsOnTypeLint, dependsOnUniqueLint, dependsOnResolvedLint, successActionsTypeLint, failureActionsTypeLint, outputsTypeLint, outputsNamesUniqueLint, outputsValuesRuntimeExpressionLint, outputsKeysPatternLint, outputsValuesTypeLint, parametersTypeLint, allowedFieldsLint];
29
+ const lints = [workflowIdRequiredLint, workflowIdTypeLint, workflowIdPatternLint, workflowIdUniqueLint, summaryTypeLint, summaryNoScriptTagsLint, summaryRecommendedLint, descriptionTypeLint, descriptionNoScriptTagsLint, descriptionRecommendedLint, inputsTypeLint, stepsRequiredLint, stepsTypeLint, stepsNonEmptyLint, dependsOnTypeLint, dependsOnUniqueLint, dependsOnResolvedLint, dependsOnSourceTypeConsistencyLint, successActionsTypeLint, failureActionsTypeLint, outputsTypeLint, outputsNamesUniqueLint, outputsValuesRuntimeExpressionLint, outputsKeysPatternLint, outputsValuesType10Lint, outputsValuesType11Lint, parametersTypeLint, allowedFieldsLint];
28
30
  export default lints;
@@ -8,7 +8,9 @@ exports.default = void 0;
8
8
  var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
9
  var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
10
  var _targetSpecs = require("../../target-specs.cjs");
11
- const outputsValuesTypeLint = {
11
+ // Arazzo 1.0.x: output values must be strings (Runtime Expressions). From Arazzo 1.1 onward,
12
+ // output values may also be a Selector Object - see outputs--values-type-1-1.ts.
13
+ const outputsValuesType10Lint = {
12
14
  code: _codes.default.ARAZZO_WORKFLOW_FIELD_OUTPUTS_VALUES_TYPE,
13
15
  source: 'apilint',
14
16
  message: 'output values must be strings (Runtime Expressions)',
@@ -18,6 +20,6 @@ const outputsValuesTypeLint = {
18
20
  marker: 'value',
19
21
  target: 'outputs',
20
22
  data: {},
21
- targetSpecs: [..._targetSpecs.Arazzo]
23
+ targetSpecs: [..._targetSpecs.Arazzo10]
22
24
  };
23
- var _default = exports.default = outputsValuesTypeLint;
25
+ var _default = exports.default = outputsValuesType10Lint;
@@ -1,7 +1,8 @@
1
1
  import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
2
  import ApilintCodes from "../../../codes.mjs";
3
- import { Arazzo } from "../../target-specs.mjs";
4
- const outputsValuesTypeLint = {
3
+ import { Arazzo10 } from "../../target-specs.mjs"; // Arazzo 1.0.x: output values must be strings (Runtime Expressions). From Arazzo 1.1 onward,
4
+ // output values may also be a Selector Object - see outputs--values-type-1-1.ts.
5
+ const outputsValuesType10Lint = {
5
6
  code: ApilintCodes.ARAZZO_WORKFLOW_FIELD_OUTPUTS_VALUES_TYPE,
6
7
  source: 'apilint',
7
8
  message: 'output values must be strings (Runtime Expressions)',
@@ -11,6 +12,6 @@ const outputsValuesTypeLint = {
11
12
  marker: 'value',
12
13
  target: 'outputs',
13
14
  data: {},
14
- targetSpecs: [...Arazzo]
15
+ targetSpecs: [...Arazzo10]
15
16
  };
16
- export default outputsValuesTypeLint;
17
+ export default outputsValuesType10Lint;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _vscodeLanguageserverTypes = require("vscode-languageserver-types");
9
+ var _codes = _interopRequireDefault(require("../../../codes.cjs"));
10
+ var _targetSpecs = require("../../target-specs.cjs");
11
+ // Arazzo 1.1: output values may be a Runtime Expression string or a Selector Object.
12
+ const outputsValuesType11Lint = {
13
+ code: _codes.default.ARAZZO_WORKFLOW_FIELD_OUTPUTS_VALUES_TYPE,
14
+ source: 'apilint',
15
+ message: 'output values must be strings (Runtime Expressions) or Selector Objects',
16
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
17
+ linterFunction: 'apilintChildrenOfTypeOrElementClass',
18
+ linterParams: ['string', ['selector']],
19
+ marker: 'value',
20
+ target: 'outputs',
21
+ data: {},
22
+ targetSpecs: [..._targetSpecs.Arazzo11]
23
+ };
24
+ var _default = exports.default = outputsValuesType11Lint;
@@ -0,0 +1,16 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo11 } from "../../target-specs.mjs"; // Arazzo 1.1: output values may be a Runtime Expression string or a Selector Object.
4
+ const outputsValuesType11Lint = {
5
+ code: ApilintCodes.ARAZZO_WORKFLOW_FIELD_OUTPUTS_VALUES_TYPE,
6
+ source: 'apilint',
7
+ message: 'output values must be strings (Runtime Expressions) or Selector Objects',
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'apilintChildrenOfTypeOrElementClass',
10
+ linterParams: ['string', ['selector']],
11
+ marker: 'value',
12
+ target: 'outputs',
13
+ data: {},
14
+ targetSpecs: [...Arazzo11]
15
+ };
16
+ export default outputsValuesType11Lint;
@@ -11,8 +11,8 @@ var _targetSpecs = require("../../target-specs.cjs");
11
11
  const workflowIdPatternLint = {
12
12
  code: _codes.default.ARAZZO_WORKFLOW_FIELD_WORKFLOW_ID_PATTERN,
13
13
  source: 'apilint',
14
- message: 'workflowId must match the pattern [A-Za-z0-9_\\-]+',
15
- severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
14
+ message: 'workflowId SHOULD match the pattern [A-Za-z0-9_\\-]+',
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Warning,
16
16
  linterFunction: 'apilintValueRegex',
17
17
  linterParams: ['^[A-Za-z0-9_\\-]+$'],
18
18
  marker: 'value',
@@ -4,8 +4,8 @@ import { Arazzo } from "../../target-specs.mjs";
4
4
  const workflowIdPatternLint = {
5
5
  code: ApilintCodes.ARAZZO_WORKFLOW_FIELD_WORKFLOW_ID_PATTERN,
6
6
  source: 'apilint',
7
- message: 'workflowId must match the pattern [A-Za-z0-9_\\-]+',
8
- severity: DiagnosticSeverity.Error,
7
+ message: 'workflowId SHOULD match the pattern [A-Za-z0-9_\\-]+',
8
+ severity: DiagnosticSeverity.Warning,
9
9
  linterFunction: 'apilintValueRegex',
10
10
  linterParams: ['^[A-Za-z0-9_\\-]+$'],
11
11
  marker: 'value',