@speclynx/apidom-ls 2.11.6 → 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 (256) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/apidom-ls.browser.min.js +3 -3
  3. package/package.json +35 -30
  4. package/src/config/arazzo/JSONSchema/{description--no-script-tags.cjs → lint/description--no-script-tags.cjs} +2 -2
  5. package/src/config/arazzo/JSONSchema/{description--no-script-tags.mjs → lint/description--no-script-tags.mjs} +2 -2
  6. package/src/config/arazzo/JSONSchema/lint/index.cjs +81 -0
  7. package/src/config/arazzo/JSONSchema/lint/index.mjs +72 -0
  8. package/src/config/arazzo/JSONSchema/{title--no-script-tags.cjs → lint/title--no-script-tags.cjs} +2 -2
  9. package/src/config/arazzo/JSONSchema/{title--no-script-tags.mjs → lint/title--no-script-tags.mjs} +2 -2
  10. package/src/config/arazzo/JSONSchema/meta.cjs +2 -2
  11. package/src/config/arazzo/JSONSchema/meta.mjs +1 -1
  12. package/src/config/arazzo/arazzoSpecification1/lint/$self--format-uri.cjs +23 -0
  13. package/src/config/arazzo/arazzoSpecification1/lint/$self--format-uri.mjs +16 -0
  14. package/src/config/arazzo/arazzoSpecification1/lint/$self--no-fragment.cjs +23 -0
  15. package/src/config/arazzo/arazzoSpecification1/lint/$self--no-fragment.mjs +16 -0
  16. package/src/config/{ads/info/lint/title--type.cjs → arazzo/arazzoSpecification1/lint/$self--type.cjs} +8 -6
  17. package/src/config/{ads/info/lint/description--type.mjs → arazzo/arazzoSpecification1/lint/$self--type.mjs} +8 -6
  18. package/src/config/arazzo/arazzoSpecification1/lint/{allowed-fields.cjs → allowed-fields-1-0.cjs} +4 -3
  19. package/src/config/arazzo/arazzoSpecification1/lint/{allowed-fields.mjs → allowed-fields-1-0.mjs} +4 -4
  20. package/src/config/arazzo/{failureAction/lint/allowed-fields.cjs → arazzoSpecification1/lint/allowed-fields-1-1.cjs} +4 -4
  21. package/src/config/arazzo/arazzoSpecification1/lint/allowed-fields-1-1.mjs +14 -0
  22. package/src/config/arazzo/arazzoSpecification1/lint/arazzo--pattern.cjs +2 -2
  23. package/src/config/arazzo/arazzoSpecification1/lint/arazzo--pattern.mjs +2 -2
  24. package/src/config/arazzo/arazzoSpecification1/lint/index.cjs +6 -2
  25. package/src/config/arazzo/arazzoSpecification1/lint/index.mjs +6 -2
  26. package/src/config/arazzo/config.cjs +6 -4
  27. package/src/config/arazzo/config.mjs +4 -2
  28. package/src/config/arazzo/criterion/lint/type--equals.cjs +1 -1
  29. package/src/config/arazzo/criterion/lint/type--equals.mjs +1 -1
  30. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/index.cjs +7 -3
  31. package/src/config/arazzo/expressionType/lint/index.mjs +12 -0
  32. package/src/config/arazzo/{criterionExpressionType/lint/type--equals.cjs → expressionType/lint/type--equals-1-0.cjs} +5 -4
  33. package/src/config/arazzo/{criterionExpressionType/lint/type--equals.mjs → expressionType/lint/type--equals-1-0.mjs} +5 -5
  34. package/src/config/arazzo/expressionType/lint/type--equals-1-1.cjs +23 -0
  35. package/src/config/arazzo/expressionType/lint/type--equals-1-1.mjs +16 -0
  36. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--required.cjs +1 -1
  37. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--required.mjs +1 -1
  38. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--type.cjs +1 -1
  39. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/type--type.mjs +1 -1
  40. package/src/config/arazzo/expressionType/lint/version--equals-jsonpath.cjs +30 -0
  41. package/src/config/arazzo/expressionType/lint/version--equals-jsonpath.mjs +23 -0
  42. package/src/config/arazzo/expressionType/lint/version--equals-jsonpointer.cjs +30 -0
  43. package/src/config/arazzo/expressionType/lint/version--equals-jsonpointer.mjs +23 -0
  44. package/src/config/arazzo/expressionType/lint/version--equals-xpath.cjs +30 -0
  45. package/src/config/arazzo/expressionType/lint/version--equals-xpath.mjs +23 -0
  46. package/src/config/arazzo/{criterionExpressionType/lint/version--required.cjs → expressionType/lint/version--required-1-0.cjs} +9 -4
  47. package/src/config/arazzo/expressionType/lint/version--required-1-0.mjs +26 -0
  48. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/version--type.cjs +1 -1
  49. package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/version--type.mjs +1 -1
  50. package/src/config/arazzo/failureAction/lint/allowed-fields-1-0.cjs +27 -0
  51. package/src/config/arazzo/failureAction/lint/allowed-fields-1-0.mjs +19 -0
  52. package/src/config/arazzo/failureAction/lint/allowed-fields-1-1.cjs +25 -0
  53. package/src/config/arazzo/failureAction/lint/{allowed-fields.mjs → allowed-fields-1-1.mjs} +9 -5
  54. package/src/config/arazzo/failureAction/lint/index.cjs +8 -2
  55. package/src/config/arazzo/failureAction/lint/index.mjs +8 -2
  56. package/src/config/arazzo/failureAction/lint/name--required.cjs +4 -0
  57. package/src/config/arazzo/failureAction/lint/name--required.mjs +4 -0
  58. package/src/config/arazzo/failureAction/lint/parameters--only-workflow-id.cjs +28 -0
  59. package/src/config/arazzo/failureAction/lint/parameters--only-workflow-id.mjs +21 -0
  60. package/src/config/arazzo/failureAction/lint/parameters--type.cjs +23 -0
  61. package/src/config/arazzo/failureAction/lint/parameters--type.mjs +16 -0
  62. package/src/config/arazzo/failureAction/lint/step-id--pattern.cjs +26 -0
  63. package/src/config/arazzo/failureAction/lint/step-id--pattern.mjs +18 -0
  64. package/src/config/arazzo/failureAction/lint/type--required.cjs +4 -0
  65. package/src/config/arazzo/failureAction/lint/type--required.mjs +4 -0
  66. package/src/config/arazzo/failureAction/lint/workflow-id--pattern.cjs +35 -0
  67. package/src/config/arazzo/failureAction/lint/workflow-id--pattern.mjs +27 -0
  68. package/src/config/arazzo/failureAction/lint/workflow-id--source-type-consistency.cjs +23 -0
  69. package/src/config/arazzo/failureAction/lint/workflow-id--source-type-consistency.mjs +16 -0
  70. package/src/config/arazzo/parameter/lint/allowed-fields.cjs +4 -0
  71. package/src/config/arazzo/parameter/lint/allowed-fields.mjs +4 -0
  72. package/src/config/arazzo/parameter/lint/name--required.cjs +4 -0
  73. package/src/config/arazzo/parameter/lint/name--required.mjs +4 -0
  74. package/src/config/arazzo/parameter/lint/value--required.cjs +4 -0
  75. package/src/config/arazzo/parameter/lint/value--required.mjs +4 -0
  76. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-0.cjs +23 -0
  77. package/src/config/arazzo/payloadReplacement/lint/allowed-fields-1-0.mjs +15 -0
  78. package/src/config/arazzo/{successAction/lint/allowed-fields.cjs → payloadReplacement/lint/allowed-fields-1-1.cjs} +4 -4
  79. package/src/config/arazzo/{successAction/lint/allowed-fields.mjs → payloadReplacement/lint/allowed-fields-1-1.mjs} +5 -5
  80. package/src/config/arazzo/payloadReplacement/lint/index.cjs +5 -2
  81. package/src/config/arazzo/payloadReplacement/lint/index.mjs +5 -2
  82. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--equals.cjs +30 -0
  83. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--equals.mjs +23 -0
  84. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--type.cjs +31 -0
  85. package/src/config/arazzo/payloadReplacement/lint/target-selector-type--type.mjs +24 -0
  86. package/src/config/arazzo/{payloadReplacement → selector}/lint/allowed-fields.cjs +2 -2
  87. package/src/config/arazzo/{payloadReplacement → selector}/lint/allowed-fields.mjs +3 -3
  88. package/src/config/arazzo/selector/lint/context--type.cjs +23 -0
  89. package/src/config/arazzo/selector/lint/context--type.mjs +16 -0
  90. package/src/config/arazzo/selector/lint/index.cjs +18 -0
  91. package/src/config/arazzo/selector/lint/index.mjs +10 -0
  92. package/src/config/arazzo/selector/lint/selector--type.cjs +23 -0
  93. package/src/config/arazzo/selector/lint/selector--type.mjs +16 -0
  94. package/src/config/arazzo/selector/lint/type--equals.cjs +30 -0
  95. package/src/config/arazzo/selector/lint/type--equals.mjs +23 -0
  96. package/src/config/arazzo/selector/lint/type--type.cjs +31 -0
  97. package/src/config/arazzo/selector/lint/type--type.mjs +24 -0
  98. package/src/config/{ads/info → arazzo/selector}/meta.cjs +1 -5
  99. package/src/config/arazzo/selector/meta.mjs +5 -0
  100. package/src/config/arazzo/sourceDescription/lint/index.cjs +3 -2
  101. package/src/config/arazzo/sourceDescription/lint/index.mjs +3 -2
  102. package/src/config/arazzo/sourceDescription/lint/name--pattern.cjs +2 -2
  103. package/src/config/arazzo/sourceDescription/lint/name--pattern.mjs +2 -2
  104. package/src/config/arazzo/sourceDescription/lint/{type--equals.cjs → type--equals-1-0.cjs} +3 -3
  105. package/src/config/arazzo/sourceDescription/lint/{type--equals.mjs → type--equals-1-0.mjs} +4 -4
  106. package/src/config/arazzo/sourceDescription/lint/type--equals-1-1.cjs +23 -0
  107. package/src/config/arazzo/sourceDescription/lint/type--equals-1-1.mjs +16 -0
  108. package/src/config/arazzo/step/lint/action--equals.cjs +23 -0
  109. package/src/config/arazzo/step/lint/action--equals.mjs +16 -0
  110. package/src/config/{ads/info/lint/description--type.cjs → arazzo/step/lint/action--type.cjs} +8 -6
  111. package/src/config/arazzo/step/lint/action--type.mjs +16 -0
  112. package/src/config/arazzo/step/lint/{allowed-fields.cjs → allowed-fields-1-0.cjs} +5 -3
  113. package/src/config/arazzo/step/lint/{allowed-fields.mjs → allowed-fields-1-0.mjs} +5 -4
  114. package/src/config/arazzo/step/lint/allowed-fields-1-1.cjs +21 -0
  115. package/src/config/arazzo/step/lint/allowed-fields-1-1.mjs +14 -0
  116. package/src/config/arazzo/step/lint/channel-path--mutually-exclusive.cjs +28 -0
  117. package/src/config/arazzo/step/lint/channel-path--mutually-exclusive.mjs +21 -0
  118. package/src/config/arazzo/step/lint/channel-path--type.cjs +23 -0
  119. package/src/config/arazzo/step/lint/channel-path--type.mjs +16 -0
  120. package/src/config/arazzo/step/lint/correlation-id--only-action-receive.cjs +34 -0
  121. package/src/config/arazzo/step/lint/correlation-id--only-action-receive.mjs +26 -0
  122. package/src/config/arazzo/step/lint/correlation-id--requires-action.cjs +30 -0
  123. package/src/config/arazzo/step/lint/correlation-id--requires-action.mjs +22 -0
  124. package/src/config/arazzo/step/lint/depends-on--resolved.cjs +32 -0
  125. package/src/config/arazzo/step/lint/depends-on--resolved.mjs +24 -0
  126. package/src/config/arazzo/step/lint/depends-on--source-type-consistency.cjs +23 -0
  127. package/src/config/arazzo/step/lint/depends-on--source-type-consistency.mjs +16 -0
  128. package/src/config/arazzo/step/lint/depends-on--type.cjs +23 -0
  129. package/src/config/arazzo/step/lint/depends-on--type.mjs +16 -0
  130. package/src/config/arazzo/step/lint/depends-on--unique.cjs +23 -0
  131. package/src/config/arazzo/step/lint/depends-on--unique.mjs +16 -0
  132. package/src/config/arazzo/step/lint/index.cjs +20 -3
  133. package/src/config/arazzo/step/lint/index.mjs +20 -3
  134. package/src/config/arazzo/step/lint/operation-id--mutually-exclusive.cjs +2 -2
  135. package/src/config/arazzo/step/lint/operation-id--mutually-exclusive.mjs +2 -2
  136. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-0.cjs +25 -0
  137. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-0.mjs +17 -0
  138. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-1.cjs +23 -0
  139. package/src/config/arazzo/step/lint/operation-id--source-type-consistency-1-1.mjs +16 -0
  140. package/src/config/arazzo/step/lint/operation-path--mutually-exclusive.cjs +2 -2
  141. package/src/config/arazzo/step/lint/operation-path--mutually-exclusive.mjs +2 -2
  142. package/src/config/arazzo/step/lint/{outputs--values-type.cjs → outputs--values-type-1-0.cjs} +5 -3
  143. package/src/config/arazzo/step/lint/{outputs--values-type.mjs → outputs--values-type-1-0.mjs} +5 -4
  144. package/src/config/arazzo/step/lint/outputs--values-type-1-1.cjs +24 -0
  145. package/src/config/arazzo/step/lint/outputs--values-type-1-1.mjs +16 -0
  146. package/src/config/arazzo/step/lint/step-id--pattern.cjs +2 -2
  147. package/src/config/arazzo/step/lint/step-id--pattern.mjs +2 -2
  148. package/src/config/arazzo/step/lint/timeout--type.cjs +23 -0
  149. package/src/config/arazzo/step/lint/timeout--type.mjs +16 -0
  150. package/src/config/arazzo/step/lint/workflow-id--mutually-exclusive.cjs +2 -2
  151. package/src/config/arazzo/step/lint/workflow-id--mutually-exclusive.mjs +2 -2
  152. package/src/config/arazzo/step/lint/workflow-id--pattern.cjs +34 -0
  153. package/src/config/arazzo/step/lint/workflow-id--pattern.mjs +26 -0
  154. package/src/config/arazzo/step/lint/workflow-id--source-type-consistency.cjs +23 -0
  155. package/src/config/arazzo/step/lint/workflow-id--source-type-consistency.mjs +16 -0
  156. package/src/config/arazzo/successAction/lint/allowed-fields-1-0.cjs +27 -0
  157. package/src/config/arazzo/successAction/lint/allowed-fields-1-0.mjs +19 -0
  158. package/src/config/arazzo/successAction/lint/allowed-fields-1-1.cjs +25 -0
  159. package/src/config/arazzo/successAction/lint/allowed-fields-1-1.mjs +18 -0
  160. package/src/config/arazzo/successAction/lint/index.cjs +8 -2
  161. package/src/config/arazzo/successAction/lint/index.mjs +8 -2
  162. package/src/config/arazzo/successAction/lint/name--required.cjs +4 -0
  163. package/src/config/arazzo/successAction/lint/name--required.mjs +4 -0
  164. package/src/config/arazzo/successAction/lint/parameters--only-workflow-id.cjs +28 -0
  165. package/src/config/arazzo/successAction/lint/parameters--only-workflow-id.mjs +21 -0
  166. package/src/config/arazzo/successAction/lint/parameters--type.cjs +23 -0
  167. package/src/config/arazzo/successAction/lint/parameters--type.mjs +16 -0
  168. package/src/config/arazzo/successAction/lint/step-id--pattern.cjs +26 -0
  169. package/src/config/arazzo/successAction/lint/step-id--pattern.mjs +18 -0
  170. package/src/config/arazzo/successAction/lint/type--required.cjs +4 -0
  171. package/src/config/arazzo/successAction/lint/type--required.mjs +4 -0
  172. package/src/config/arazzo/successAction/lint/workflow-id--pattern.cjs +35 -0
  173. package/src/config/arazzo/successAction/lint/workflow-id--pattern.mjs +27 -0
  174. package/src/config/arazzo/successAction/lint/workflow-id--source-type-consistency.cjs +23 -0
  175. package/src/config/arazzo/successAction/lint/workflow-id--source-type-consistency.mjs +16 -0
  176. package/src/config/arazzo/target-specs.cjs +33 -5
  177. package/src/config/arazzo/target-specs.mjs +32 -4
  178. package/src/config/arazzo/workflow/lint/depends-on--source-type-consistency.cjs +23 -0
  179. package/src/config/arazzo/workflow/lint/depends-on--source-type-consistency.mjs +16 -0
  180. package/src/config/arazzo/workflow/lint/index.cjs +4 -2
  181. package/src/config/arazzo/workflow/lint/index.mjs +4 -2
  182. package/src/config/arazzo/workflow/lint/{outputs--values-type.cjs → outputs--values-type-1-0.cjs} +5 -3
  183. package/src/config/arazzo/workflow/lint/{outputs--values-type.mjs → outputs--values-type-1-0.mjs} +5 -4
  184. package/src/config/arazzo/workflow/lint/outputs--values-type-1-1.cjs +24 -0
  185. package/src/config/arazzo/workflow/lint/outputs--values-type-1-1.mjs +16 -0
  186. package/src/config/arazzo/workflow/lint/workflow-id--pattern.cjs +2 -2
  187. package/src/config/arazzo/workflow/lint/workflow-id--pattern.mjs +2 -2
  188. package/src/config/codes.cjs +50 -17
  189. package/src/config/codes.mjs +50 -17
  190. package/src/config/config.cjs +6 -8
  191. package/src/config/config.mjs +0 -2
  192. package/src/config/openapi/schema/lint.cjs +5 -1
  193. package/src/config/openapi/schema/lint.mjs +5 -1
  194. package/src/config/symbols.cjs +3 -4
  195. package/src/config/symbols.mjs +1 -2
  196. package/src/config/tokens.cjs +5 -6
  197. package/src/config/tokens.mjs +1 -2
  198. package/src/index.cjs +7 -0
  199. package/src/index.mjs +1 -0
  200. package/src/services/completion/completion-service.cjs +1 -1
  201. package/src/services/completion/completion-service.mjs +1 -1
  202. package/src/services/hover/hover-service.cjs +1 -1
  203. package/src/services/hover/hover-service.mjs +1 -1
  204. package/src/services/validation/linter-functions.cjs +150 -1
  205. package/src/services/validation/linter-functions.mjs +151 -2
  206. package/src/services/validation/providers/arazzo-11-json-schema-validation-provider.cjs +852 -0
  207. package/src/services/validation/providers/arazzo-11-json-schema-validation-provider.mjs +845 -0
  208. package/src/services/validation/validation-service.cjs +12 -4
  209. package/src/services/validation/validation-service.mjs +12 -4
  210. package/src/utils/utils.cjs +5 -1
  211. package/src/utils/utils.mjs +5 -1
  212. package/types/apidom-ls.d.ts +82 -17
  213. package/src/config/ads/config.cjs +0 -25
  214. package/src/config/ads/config.mjs +0 -18
  215. package/src/config/ads/info/completion.cjs +0 -31
  216. package/src/config/ads/info/completion.mjs +0 -25
  217. package/src/config/ads/info/documentation.cjs +0 -14
  218. package/src/config/ads/info/documentation.mjs +0 -8
  219. package/src/config/ads/info/lint/allowed-fields.cjs +0 -19
  220. package/src/config/ads/info/lint/allowed-fields.mjs +0 -12
  221. package/src/config/ads/info/lint/index.cjs +0 -13
  222. package/src/config/ads/info/lint/index.mjs +0 -6
  223. package/src/config/ads/info/lint/title--required.cjs +0 -27
  224. package/src/config/ads/info/lint/title--required.mjs +0 -20
  225. package/src/config/ads/info/lint/title--type.mjs +0 -14
  226. package/src/config/ads/info/meta.mjs +0 -9
  227. package/src/config/ads/main/completion.cjs +0 -72
  228. package/src/config/ads/main/completion.mjs +0 -66
  229. package/src/config/ads/main/documentation.cjs +0 -23
  230. package/src/config/ads/main/documentation.mjs +0 -17
  231. package/src/config/ads/main/lint/allowed-fields.cjs +0 -19
  232. package/src/config/ads/main/lint/allowed-fields.mjs +0 -12
  233. package/src/config/ads/main/lint/index.cjs +0 -14
  234. package/src/config/ads/main/lint/index.mjs +0 -7
  235. package/src/config/ads/main/lint/info--required.cjs +0 -27
  236. package/src/config/ads/main/lint/info--required.mjs +0 -20
  237. package/src/config/ads/main/lint/info--type.cjs +0 -21
  238. package/src/config/ads/main/lint/info--type.mjs +0 -14
  239. package/src/config/ads/main/lint/version--pattern.cjs +0 -27
  240. package/src/config/ads/main/lint/version--pattern.mjs +0 -20
  241. package/src/config/ads/main/lint/version--required.cjs +0 -27
  242. package/src/config/ads/main/lint/version--required.mjs +0 -20
  243. package/src/config/ads/main/meta.cjs +0 -16
  244. package/src/config/ads/main/meta.mjs +0 -9
  245. package/src/config/ads/symbols.cjs +0 -8
  246. package/src/config/ads/symbols.mjs +0 -2
  247. package/src/config/ads/tokens.cjs +0 -8
  248. package/src/config/ads/tokens.mjs +0 -2
  249. package/src/config/arazzo/JSONSchema/lint.cjs +0 -77
  250. package/src/config/arazzo/JSONSchema/lint.mjs +0 -68
  251. package/src/config/arazzo/criterionExpressionType/lint/index.mjs +0 -8
  252. package/src/config/arazzo/criterionExpressionType/lint/version--required.mjs +0 -22
  253. /package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/allowed-fields.cjs +0 -0
  254. /package/src/config/arazzo/{criterionExpressionType → expressionType}/lint/allowed-fields.mjs +0 -0
  255. /package/src/config/arazzo/{criterionExpressionType → expressionType}/meta.cjs +0 -0
  256. /package/src/config/arazzo/{criterionExpressionType → expressionType}/meta.mjs +0 -0
@@ -11,8 +11,8 @@ var _targetSpecs = require("../../target-specs.cjs");
11
11
  const stepIdPatternLint = {
12
12
  code: _codes.default.ARAZZO_STEP_FIELD_STEP_ID_PATTERN,
13
13
  source: 'apilint',
14
- message: 'stepId must match the pattern [A-Za-z0-9_\\-]+',
15
- severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
14
+ message: 'stepId 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 stepIdPatternLint = {
5
5
  code: ApilintCodes.ARAZZO_STEP_FIELD_STEP_ID_PATTERN,
6
6
  source: 'apilint',
7
- message: 'stepId must match the pattern [A-Za-z0-9_\\-]+',
8
- severity: DiagnosticSeverity.Error,
7
+ message: 'stepId 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',
@@ -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 timeoutTypeLint = {
12
+ code: _codes.default.ARAZZO_STEP_FIELD_TIMEOUT_TYPE,
13
+ source: 'apilint',
14
+ message: 'timeout must be an integer',
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
+ linterFunction: 'apilintNumber',
17
+ linterParams: [true],
18
+ marker: 'value',
19
+ target: 'timeout',
20
+ data: {},
21
+ targetSpecs: [..._targetSpecs.Arazzo11]
22
+ };
23
+ var _default = exports.default = timeoutTypeLint;
@@ -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 timeoutTypeLint = {
5
+ code: ApilintCodes.ARAZZO_STEP_FIELD_TIMEOUT_TYPE,
6
+ source: 'apilint',
7
+ message: 'timeout must be an integer',
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'apilintNumber',
10
+ linterParams: [true],
11
+ marker: 'value',
12
+ target: 'timeout',
13
+ data: {},
14
+ targetSpecs: [...Arazzo11]
15
+ };
16
+ export default timeoutTypeLint;
@@ -11,10 +11,10 @@ var _targetSpecs = require("../../target-specs.cjs");
11
11
  const workflowIdMutuallyExclusiveLint = {
12
12
  code: _codes.default.ARAZZO_STEP_FIELD_WORKFLOW_ID_MUTUALLY_EXCLUSIVE,
13
13
  source: 'apilint',
14
- message: 'workflowId is mutually exclusive with operationId and operationPath',
14
+ message: 'workflowId is mutually exclusive with operationId, operationPath and channelPath',
15
15
  severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
16
  linterFunction: 'missingFields',
17
- linterParams: [['operationId', 'operationPath']],
17
+ linterParams: [['operationId', 'operationPath', 'channelPath']],
18
18
  marker: 'key',
19
19
  markerTarget: 'workflowId',
20
20
  conditions: [{
@@ -4,10 +4,10 @@ import { Arazzo } from "../../target-specs.mjs";
4
4
  const workflowIdMutuallyExclusiveLint = {
5
5
  code: ApilintCodes.ARAZZO_STEP_FIELD_WORKFLOW_ID_MUTUALLY_EXCLUSIVE,
6
6
  source: 'apilint',
7
- message: 'workflowId is mutually exclusive with operationId and operationPath',
7
+ message: 'workflowId is mutually exclusive with operationId, operationPath and channelPath',
8
8
  severity: DiagnosticSeverity.Error,
9
9
  linterFunction: 'missingFields',
10
- linterParams: [['operationId', 'operationPath']],
10
+ linterParams: [['operationId', 'operationPath', 'channelPath']],
11
11
  marker: 'key',
12
12
  markerTarget: 'workflowId',
13
13
  conditions: [{
@@ -0,0 +1,34 @@
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 step's `workflowId` reference MAY instead be
12
+ // a `$sourceDescriptions.` Runtime Expression when it points at an external Arazzo document (see
13
+ // workflow-id--resolved.ts) - so this pattern only applies to the plain, local-id form.
14
+ const workflowIdPatternLint = {
15
+ code: _codes.default.ARAZZO_STEP_FIELD_WORKFLOW_ID_PATTERN,
16
+ source: 'apilint',
17
+ message: 'workflowId 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: 'workflowId',
23
+ conditions: [{
24
+ targets: [{
25
+ path: 'workflowId'
26
+ }],
27
+ function: 'apilintValueRegex',
28
+ params: ['^\\$'],
29
+ negate: true
30
+ }],
31
+ data: {},
32
+ targetSpecs: [..._targetSpecs.Arazzo]
33
+ };
34
+ var _default = exports.default = workflowIdPatternLint;
@@ -0,0 +1,26 @@
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 step's `workflowId` reference MAY instead be
4
+ // a `$sourceDescriptions.` Runtime Expression when it points at an external Arazzo document (see
5
+ // workflow-id--resolved.ts) - so this pattern only applies to the plain, local-id form.
6
+ const workflowIdPatternLint = {
7
+ code: ApilintCodes.ARAZZO_STEP_FIELD_WORKFLOW_ID_PATTERN,
8
+ source: 'apilint',
9
+ message: 'workflowId 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: 'workflowId',
15
+ conditions: [{
16
+ targets: [{
17
+ path: 'workflowId'
18
+ }],
19
+ function: 'apilintValueRegex',
20
+ params: ['^\\$'],
21
+ negate: true
22
+ }],
23
+ data: {},
24
+ targetSpecs: [...Arazzo]
25
+ };
26
+ 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_STEP_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_STEP_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;
@@ -0,0 +1,27 @@
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
+ // `parameters` doesn't exist on the Success Action Object in Arazzo 1.0 - see
12
+ // allowed-fields-1-1.ts.
13
+ const allowedFields10Lint = {
14
+ code: _codes.default.NOT_ALLOWED_FIELDS,
15
+ source: 'apilint',
16
+ message: 'Object includes not allowed fields',
17
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
18
+ linterFunction: 'allowedFields',
19
+ linterParams: [['name', 'type', 'workflowId', 'stepId', 'criteria'], 'x-'],
20
+ marker: 'key',
21
+ conditions: [{
22
+ function: 'missingField',
23
+ params: ['reference']
24
+ }],
25
+ targetSpecs: [..._targetSpecs.Arazzo10]
26
+ };
27
+ var _default = exports.default = allowedFields10Lint;
@@ -0,0 +1,19 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo10 } from "../../target-specs.mjs"; // `parameters` doesn't exist on the Success Action Object in Arazzo 1.0 - see
4
+ // allowed-fields-1-1.ts.
5
+ const allowedFields10Lint = {
6
+ code: ApilintCodes.NOT_ALLOWED_FIELDS,
7
+ source: 'apilint',
8
+ message: 'Object includes not allowed fields',
9
+ severity: DiagnosticSeverity.Error,
10
+ linterFunction: 'allowedFields',
11
+ linterParams: [['name', 'type', 'workflowId', 'stepId', 'criteria'], 'x-'],
12
+ marker: 'key',
13
+ conditions: [{
14
+ function: 'missingField',
15
+ params: ['reference']
16
+ }],
17
+ targetSpecs: [...Arazzo10]
18
+ };
19
+ export default allowedFields10Lint;
@@ -0,0 +1,25 @@
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 allowedFields11Lint = {
12
+ code: _codes.default.NOT_ALLOWED_FIELDS,
13
+ source: 'apilint',
14
+ message: 'Object includes not allowed fields',
15
+ severity: _vscodeLanguageserverTypes.DiagnosticSeverity.Error,
16
+ linterFunction: 'allowedFields',
17
+ linterParams: [['name', 'type', 'workflowId', 'stepId', 'parameters', 'criteria'], 'x-'],
18
+ marker: 'key',
19
+ conditions: [{
20
+ function: 'missingField',
21
+ params: ['reference']
22
+ }],
23
+ targetSpecs: [..._targetSpecs.Arazzo11]
24
+ };
25
+ var _default = exports.default = allowedFields11Lint;
@@ -0,0 +1,18 @@
1
+ import { DiagnosticSeverity } from 'vscode-languageserver-types';
2
+ import ApilintCodes from "../../../codes.mjs";
3
+ import { Arazzo11 } from "../../target-specs.mjs";
4
+ const allowedFields11Lint = {
5
+ code: ApilintCodes.NOT_ALLOWED_FIELDS,
6
+ source: 'apilint',
7
+ message: 'Object includes not allowed fields',
8
+ severity: DiagnosticSeverity.Error,
9
+ linterFunction: 'allowedFields',
10
+ linterParams: [['name', 'type', 'workflowId', 'stepId', 'parameters', 'criteria'], 'x-'],
11
+ marker: 'key',
12
+ conditions: [{
13
+ function: 'missingField',
14
+ params: ['reference']
15
+ }],
16
+ targetSpecs: [...Arazzo11]
17
+ };
18
+ export default allowedFields11Lint;
@@ -11,13 +11,19 @@ var _typeRequired = _interopRequireDefault(require("./type--required.cjs"));
11
11
  var _typeType = _interopRequireDefault(require("./type--type.cjs"));
12
12
  var _typeEquals = _interopRequireDefault(require("./type--equals.cjs"));
13
13
  var _workflowIdType = _interopRequireDefault(require("./workflow-id--type.cjs"));
14
+ var _workflowIdPattern = _interopRequireDefault(require("./workflow-id--pattern.cjs"));
15
+ var _workflowIdSourceTypeConsistency = _interopRequireDefault(require("./workflow-id--source-type-consistency.cjs"));
14
16
  var _stepIdType = _interopRequireDefault(require("./step-id--type.cjs"));
17
+ var _stepIdPattern = _interopRequireDefault(require("./step-id--pattern.cjs"));
15
18
  var _criteriaType = _interopRequireDefault(require("./criteria--type.cjs"));
19
+ var _parametersType = _interopRequireDefault(require("./parameters--type.cjs"));
20
+ var _parametersOnlyWorkflowId = _interopRequireDefault(require("./parameters--only-workflow-id.cjs"));
16
21
  var _workflowIdMutuallyExclusive = _interopRequireDefault(require("./workflow-id--mutually-exclusive.cjs"));
17
22
  var _stepIdMutuallyExclusive = _interopRequireDefault(require("./step-id--mutually-exclusive.cjs"));
18
23
  var _workflowIdResolved = _interopRequireDefault(require("./workflow-id--resolved.cjs"));
19
24
  var _stepIdResolved = _interopRequireDefault(require("./step-id--resolved.cjs"));
20
25
  var _nameUnique = _interopRequireDefault(require("./name--unique.cjs"));
21
- var _allowedFields = _interopRequireDefault(require("./allowed-fields.cjs"));
22
- const lints = [_nameRequired.default, _nameType.default, _nameUnique.default, _typeRequired.default, _typeType.default, _typeEquals.default, _workflowIdType.default, _stepIdType.default, _workflowIdMutuallyExclusive.default, _stepIdMutuallyExclusive.default, _workflowIdResolved.default, _stepIdResolved.default, _criteriaType.default, _allowedFields.default];
26
+ var _allowedFields = _interopRequireDefault(require("./allowed-fields-1-0.cjs"));
27
+ var _allowedFields2 = _interopRequireDefault(require("./allowed-fields-1-1.cjs"));
28
+ const lints = [_nameRequired.default, _nameType.default, _nameUnique.default, _typeRequired.default, _typeType.default, _typeEquals.default, _workflowIdType.default, _workflowIdPattern.default, _workflowIdSourceTypeConsistency.default, _stepIdType.default, _stepIdPattern.default, _workflowIdMutuallyExclusive.default, _stepIdMutuallyExclusive.default, _workflowIdResolved.default, _stepIdResolved.default, _criteriaType.default, _parametersType.default, _parametersOnlyWorkflowId.default, _allowedFields.default, _allowedFields2.default];
23
29
  var _default = exports.default = lints;
@@ -4,13 +4,19 @@ import typeRequiredLint from "./type--required.mjs";
4
4
  import typeTypeLint from "./type--type.mjs";
5
5
  import typeEqualsLint from "./type--equals.mjs";
6
6
  import workflowIdTypeLint from "./workflow-id--type.mjs";
7
+ import workflowIdPatternLint from "./workflow-id--pattern.mjs";
8
+ import workflowIdSourceTypeConsistencyLint from "./workflow-id--source-type-consistency.mjs";
7
9
  import stepIdTypeLint from "./step-id--type.mjs";
10
+ import stepIdPatternLint from "./step-id--pattern.mjs";
8
11
  import criteriaTypeLint from "./criteria--type.mjs";
12
+ import parametersTypeLint from "./parameters--type.mjs";
13
+ import parametersOnlyWorkflowIdLint from "./parameters--only-workflow-id.mjs";
9
14
  import workflowIdMutuallyExclusiveLint from "./workflow-id--mutually-exclusive.mjs";
10
15
  import stepIdMutuallyExclusiveLint from "./step-id--mutually-exclusive.mjs";
11
16
  import workflowIdResolvedLint from "./workflow-id--resolved.mjs";
12
17
  import stepIdResolvedLint from "./step-id--resolved.mjs";
13
18
  import nameUniqueLint from "./name--unique.mjs";
14
- import allowedFieldsLint from "./allowed-fields.mjs";
15
- const lints = [nameRequiredLint, nameTypeLint, nameUniqueLint, typeRequiredLint, typeTypeLint, typeEqualsLint, workflowIdTypeLint, stepIdTypeLint, workflowIdMutuallyExclusiveLint, stepIdMutuallyExclusiveLint, workflowIdResolvedLint, stepIdResolvedLint, criteriaTypeLint, allowedFieldsLint];
19
+ import allowedFields10Lint from "./allowed-fields-1-0.mjs";
20
+ import allowedFields11Lint from "./allowed-fields-1-1.mjs";
21
+ const lints = [nameRequiredLint, nameTypeLint, nameUniqueLint, typeRequiredLint, typeTypeLint, typeEqualsLint, workflowIdTypeLint, workflowIdPatternLint, workflowIdSourceTypeConsistencyLint, stepIdTypeLint, stepIdPatternLint, workflowIdMutuallyExclusiveLint, stepIdMutuallyExclusiveLint, workflowIdResolvedLint, stepIdResolvedLint, criteriaTypeLint, parametersTypeLint, parametersOnlyWorkflowIdLint, allowedFields10Lint, allowedFields11Lint];
16
22
  export default lints;
@@ -24,6 +24,10 @@ const nameRequiredLint = {
24
24
  snippetJson: '"name": "",\n '
25
25
  }]
26
26
  },
27
+ conditions: [{
28
+ function: 'missingField',
29
+ params: ['reference']
30
+ }],
27
31
  targetSpecs: [..._targetSpecs.Arazzo]
28
32
  };
29
33
  var _default = exports.default = nameRequiredLint;
@@ -17,6 +17,10 @@ const nameRequiredLint = {
17
17
  snippetJson: '"name": "",\n '
18
18
  }]
19
19
  },
20
+ conditions: [{
21
+ function: 'missingField',
22
+ params: ['reference']
23
+ }],
20
24
  targetSpecs: [...Arazzo]
21
25
  };
22
26
  export default nameRequiredLint;
@@ -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;
@@ -24,6 +24,10 @@ const typeRequiredLint = {
24
24
  snippetJson: '"type": "end",\n '
25
25
  }]
26
26
  },
27
+ conditions: [{
28
+ function: 'missingField',
29
+ params: ['reference']
30
+ }],
27
31
  targetSpecs: [..._targetSpecs.Arazzo]
28
32
  };
29
33
  var _default = exports.default = typeRequiredLint;
@@ -17,6 +17,10 @@ const typeRequiredLint = {
17
17
  snippetJson: '"type": "end",\n '
18
18
  }]
19
19
  },
20
+ conditions: [{
21
+ function: 'missingField',
22
+ params: ['reference']
23
+ }],
20
24
  targetSpecs: [...Arazzo]
21
25
  };
22
26
  export default typeRequiredLint;
@@ -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;