@luxass/spectral-ruleset 1.1.0 → 1.1.1

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.
package/dist/ruleset.cjs CHANGED
@@ -1,153 +1,130 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
- value: mod,
20
- enumerable: true
21
- }) : target, mod));
22
-
23
- //#endregion
24
- const __stoplight_spectral_functions = __toESM(require("@stoplight/spectral-functions"));
25
- const __stoplight_spectral_rulesets = __toESM(require("@stoplight/spectral-rulesets"));
26
- const __stoplight_spectral_formats = __toESM(require("@stoplight/spectral-formats"));
1
+ let _stoplight_spectral_functions = require("@stoplight/spectral-functions");
2
+ let _stoplight_spectral_rulesets = require("@stoplight/spectral-rulesets");
3
+ let _stoplight_spectral_formats = require("@stoplight/spectral-formats");
27
4
 
28
5
  //#region node_modules/.pnpm/@stoplight+types@14.1.1/node_modules/@stoplight/types/dist/index.mjs
29
6
  var HttpOperationSecurityDeclarationTypes;
30
- (function(HttpOperationSecurityDeclarationTypes$1) {
7
+ (function(HttpOperationSecurityDeclarationTypes) {
31
8
  /** Indicates that the operation has no security declarations. */
32
- HttpOperationSecurityDeclarationTypes$1["None"] = "none";
9
+ HttpOperationSecurityDeclarationTypes["None"] = "none";
33
10
  /** Indicates that the operation has explicit security declarations. */
34
- HttpOperationSecurityDeclarationTypes$1["Declared"] = "declared";
11
+ HttpOperationSecurityDeclarationTypes["Declared"] = "declared";
35
12
  /** Indicates that the operation inherits its security declarations from the service. */
36
- HttpOperationSecurityDeclarationTypes$1["InheritedFromService"] = "inheritedFromService";
13
+ HttpOperationSecurityDeclarationTypes["InheritedFromService"] = "inheritedFromService";
37
14
  })(HttpOperationSecurityDeclarationTypes || (HttpOperationSecurityDeclarationTypes = {}));
38
15
  var HttpParamStyles;
39
- (function(HttpParamStyles$1) {
16
+ (function(HttpParamStyles) {
40
17
  /** Used when OAS2 type !== array */
41
- HttpParamStyles$1["Unspecified"] = "unspecified";
18
+ HttpParamStyles["Unspecified"] = "unspecified";
42
19
  /**
43
20
  * OAS 3.x style simple
44
21
  * OAS 2 collectionFormat csv
45
22
  */
46
- HttpParamStyles$1["Simple"] = "simple";
23
+ HttpParamStyles["Simple"] = "simple";
47
24
  /**
48
25
  * OAS 3.x style matrix
49
26
  * OAS 2 collectionFormat no support
50
27
  */
51
- HttpParamStyles$1["Matrix"] = "matrix";
28
+ HttpParamStyles["Matrix"] = "matrix";
52
29
  /**
53
30
  * OAS 3.x style label
54
31
  * OAS 2 collectionFormat no support
55
32
  */
56
- HttpParamStyles$1["Label"] = "label";
33
+ HttpParamStyles["Label"] = "label";
57
34
  /**
58
35
  * OAS 3.x style form
59
36
  * OAS 2 collectionFormat
60
37
  * * csv, when explode === false
61
38
  * * multi, when explode === true
62
39
  */
63
- HttpParamStyles$1["Form"] = "form";
40
+ HttpParamStyles["Form"] = "form";
64
41
  /**
65
42
  * OAS 3.x no support
66
43
  * OAS 2 collectionFormat csv when explode === undefined
67
44
  */
68
- HttpParamStyles$1["CommaDelimited"] = "commaDelimited";
45
+ HttpParamStyles["CommaDelimited"] = "commaDelimited";
69
46
  /**
70
47
  * OAS 3.x style spaceDelimited
71
48
  * OAS 2 collectionFormat ssv
72
49
  */
73
- HttpParamStyles$1["SpaceDelimited"] = "spaceDelimited";
50
+ HttpParamStyles["SpaceDelimited"] = "spaceDelimited";
74
51
  /**
75
52
  * OAS 3.x style spaceDelimited
76
53
  * OAS 2 collectionFormat pipes
77
54
  */
78
- HttpParamStyles$1["PipeDelimited"] = "pipeDelimited";
55
+ HttpParamStyles["PipeDelimited"] = "pipeDelimited";
79
56
  /**
80
57
  * OAS 3.x style deepObject
81
58
  * OAS 2 collectionFormat no support
82
59
  */
83
- HttpParamStyles$1["DeepObject"] = "deepObject";
60
+ HttpParamStyles["DeepObject"] = "deepObject";
84
61
  /**
85
62
  * OAS 3.x style no support
86
63
  * OAS 2 collectionFormat tsv
87
64
  */
88
- HttpParamStyles$1["TabDelimited"] = "tabDelimited";
65
+ HttpParamStyles["TabDelimited"] = "tabDelimited";
89
66
  })(HttpParamStyles || (HttpParamStyles = {}));
90
67
  /**
91
68
  * Represents the severity of diagnostics.
92
69
  */
93
70
  var DiagnosticSeverity;
94
- (function(DiagnosticSeverity$1) {
71
+ (function(DiagnosticSeverity) {
95
72
  /**
96
73
  * Something not allowed by the rules of a language or other means.
97
74
  */
98
- DiagnosticSeverity$1[DiagnosticSeverity$1["Error"] = 0] = "Error";
75
+ DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
99
76
  /**
100
77
  * Something suspicious but allowed.
101
78
  */
102
- DiagnosticSeverity$1[DiagnosticSeverity$1["Warning"] = 1] = "Warning";
79
+ DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
103
80
  /**
104
81
  * Something to inform about but not a problem.
105
82
  */
106
- DiagnosticSeverity$1[DiagnosticSeverity$1["Information"] = 2] = "Information";
83
+ DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
107
84
  /**
108
85
  * Something to hint to a better way of doing it, like proposing
109
86
  * a refactoring.
110
87
  */
111
- DiagnosticSeverity$1[DiagnosticSeverity$1["Hint"] = 3] = "Hint";
88
+ DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
112
89
  })(DiagnosticSeverity || (DiagnosticSeverity = {}));
113
90
  /**
114
91
  * Stoplight node types
115
92
  */
116
93
  var NodeType;
117
- (function(NodeType$1) {
118
- NodeType$1["Article"] = "article";
119
- NodeType$1["HttpService"] = "http_service";
120
- NodeType$1["HttpServer"] = "http_server";
121
- NodeType$1["HttpOperation"] = "http_operation";
122
- NodeType$1["HttpCallback"] = "http_callback";
123
- NodeType$1["HttpWebhook"] = "http_webhook";
124
- NodeType$1["Model"] = "model";
125
- NodeType$1["Generic"] = "generic";
126
- NodeType$1["Unknown"] = "unknown";
127
- NodeType$1["TableOfContents"] = "table_of_contents";
128
- NodeType$1["SpectralRuleset"] = "spectral_ruleset";
129
- NodeType$1["Styleguide"] = "styleguide";
130
- NodeType$1["Image"] = "image";
131
- NodeType$1["StoplightResolutions"] = "stoplight_resolutions";
132
- NodeType$1["StoplightOverride"] = "stoplight_override";
94
+ (function(NodeType) {
95
+ NodeType["Article"] = "article";
96
+ NodeType["HttpService"] = "http_service";
97
+ NodeType["HttpServer"] = "http_server";
98
+ NodeType["HttpOperation"] = "http_operation";
99
+ NodeType["HttpCallback"] = "http_callback";
100
+ NodeType["HttpWebhook"] = "http_webhook";
101
+ NodeType["Model"] = "model";
102
+ NodeType["Generic"] = "generic";
103
+ NodeType["Unknown"] = "unknown";
104
+ NodeType["TableOfContents"] = "table_of_contents";
105
+ NodeType["SpectralRuleset"] = "spectral_ruleset";
106
+ NodeType["Styleguide"] = "styleguide";
107
+ NodeType["Image"] = "image";
108
+ NodeType["StoplightResolutions"] = "stoplight_resolutions";
109
+ NodeType["StoplightOverride"] = "stoplight_override";
133
110
  })(NodeType || (NodeType = {}));
134
111
  /**
135
112
  * Node data formats
136
113
  */
137
114
  var NodeFormat;
138
- (function(NodeFormat$1) {
139
- NodeFormat$1["Json"] = "json";
140
- NodeFormat$1["Markdown"] = "markdown";
141
- NodeFormat$1["Yaml"] = "yaml";
142
- NodeFormat$1["Javascript"] = "javascript";
143
- NodeFormat$1["Apng"] = "apng";
144
- NodeFormat$1["Avif"] = "avif";
145
- NodeFormat$1["Bmp"] = "bmp";
146
- NodeFormat$1["Gif"] = "gif";
147
- NodeFormat$1["Jpeg"] = "jpeg";
148
- NodeFormat$1["Png"] = "png";
149
- NodeFormat$1["Svg"] = "svg";
150
- NodeFormat$1["Webp"] = "webp";
115
+ (function(NodeFormat) {
116
+ NodeFormat["Json"] = "json";
117
+ NodeFormat["Markdown"] = "markdown";
118
+ NodeFormat["Yaml"] = "yaml";
119
+ NodeFormat["Javascript"] = "javascript";
120
+ NodeFormat["Apng"] = "apng";
121
+ NodeFormat["Avif"] = "avif";
122
+ NodeFormat["Bmp"] = "bmp";
123
+ NodeFormat["Gif"] = "gif";
124
+ NodeFormat["Jpeg"] = "jpeg";
125
+ NodeFormat["Png"] = "png";
126
+ NodeFormat["Svg"] = "svg";
127
+ NodeFormat["Webp"] = "webp";
151
128
  })(NodeFormat || (NodeFormat = {}));
152
129
 
153
130
  //#endregion
@@ -158,15 +135,15 @@ var oas2_default = {
158
135
  description: "Defining a request body on a HTTP GET is technically possible in some implementations, but is increasingly frowned upon due to the confusion that comes from unspecified behavior in the HTTP specification.",
159
136
  given: "$.paths..get.parameters..in",
160
137
  then: {
161
- function: __stoplight_spectral_functions.pattern,
138
+ function: _stoplight_spectral_functions.pattern,
162
139
  functionOptions: { notMatch: "/^body$/" }
163
140
  },
164
141
  severity: DiagnosticSeverity.Error,
165
- formats: [__stoplight_spectral_formats.oas2]
142
+ formats: [_stoplight_spectral_formats.oas2]
166
143
  },
167
144
  "luxass/oas2/protocol-https-only": {
168
145
  description: "ALL requests MUST go through `https` protocol only.",
169
- formats: [__stoplight_spectral_formats.oas2],
146
+ formats: [_stoplight_spectral_formats.oas2],
170
147
  message: "Schemes MUST be https and no other value is allowed.",
171
148
  severity: DiagnosticSeverity.Error,
172
149
  recommended: true,
@@ -174,7 +151,7 @@ var oas2_default = {
174
151
  given: "$",
175
152
  then: {
176
153
  field: "schemes",
177
- function: __stoplight_spectral_functions.schema,
154
+ function: _stoplight_spectral_functions.schema,
178
155
  functionOptions: { schema: {
179
156
  type: "array",
180
157
  items: {
@@ -191,14 +168,14 @@ var oas2_default = {
191
168
  var oas3_default = {
192
169
  "luxass/oas3/protocol-https-only": {
193
170
  description: "ALL requests MUST go through `https` protocol only.",
194
- formats: [__stoplight_spectral_formats.oas3],
171
+ formats: [_stoplight_spectral_formats.oas3],
195
172
  message: "Schemes MUST be https and no other value is allowed.",
196
173
  severity: DiagnosticSeverity.Error,
197
174
  recommended: true,
198
175
  type: "style",
199
176
  given: "$.servers..url",
200
177
  then: {
201
- function: __stoplight_spectral_functions.pattern,
178
+ function: _stoplight_spectral_functions.pattern,
202
179
  functionOptions: { match: "/^https:/" }
203
180
  }
204
181
  },
@@ -206,8 +183,8 @@ var oas3_default = {
206
183
  message: "A `GET` request MUST NOT accept a request body.",
207
184
  description: "Defining a request body on a HTTP GET is in some implementations, but is increasingly frowned upon due to the confusion that comes from unspecified behavior in the HTTP specification.",
208
185
  given: "$.paths..get.requestBody",
209
- then: { function: __stoplight_spectral_functions.undefined },
210
- formats: [__stoplight_spectral_formats.oas3],
186
+ then: { function: _stoplight_spectral_functions.undefined },
187
+ formats: [_stoplight_spectral_formats.oas3],
211
188
  severity: DiagnosticSeverity.Error
212
189
  }
213
190
  };
@@ -215,7 +192,7 @@ var oas3_default = {
215
192
  //#endregion
216
193
  //#region src/ruleset.ts
217
194
  var ruleset_default = {
218
- extends: [[__stoplight_spectral_rulesets.oas, "all"], [__stoplight_spectral_rulesets.asyncapi, "all"]],
195
+ extends: [[_stoplight_spectral_rulesets.oas, "all"], [_stoplight_spectral_rulesets.asyncapi, "all"]],
219
196
  rules: {
220
197
  "operation-tags": "off",
221
198
  "operation-operationId": "off",
@@ -226,7 +203,7 @@ var ruleset_default = {
226
203
  given: "$.paths",
227
204
  then: {
228
205
  field: "/",
229
- function: __stoplight_spectral_functions.truthy
206
+ function: _stoplight_spectral_functions.truthy
230
207
  },
231
208
  severity: DiagnosticSeverity.Warning
232
209
  },
@@ -236,7 +213,7 @@ var ruleset_default = {
236
213
  given: "$.paths[/]",
237
214
  then: {
238
215
  field: "get",
239
- function: __stoplight_spectral_functions.truthy
216
+ function: _stoplight_spectral_functions.truthy
240
217
  },
241
218
  severity: DiagnosticSeverity.Warning
242
219
  },
@@ -245,7 +222,7 @@ var ruleset_default = {
245
222
  description: "Headers starting with X- is an awkward convention which is entirely unnecessary. There is probably a standard for what you're trying to do, so it would be better to use that. If there is not a standard already perhaps there's a draft that you could help mature through use and feedback.\n\nSee what you can find on https://standards.rest.\n\nMore about X- headers here: https://tools.ietf.org/html/rfc6648.",
246
223
  given: "$..parameters[?(@.in === 'header')].name",
247
224
  then: {
248
- function: __stoplight_spectral_functions.pattern,
225
+ function: _stoplight_spectral_functions.pattern,
249
226
  functionOptions: { notMatch: "^(x|X)-" }
250
227
  },
251
228
  severity: DiagnosticSeverity.Error
@@ -255,7 +232,7 @@ var ruleset_default = {
255
232
  description: "Paths must not include file extensions such as `.json`, `.xml`, `.html` and `.txt`. Use the OpenAPI `content` keyword to tell consumers which Media Types are available.",
256
233
  given: "$.paths[*]~",
257
234
  then: {
258
- function: __stoplight_spectral_functions.pattern,
235
+ function: _stoplight_spectral_functions.pattern,
259
236
  functionOptions: { notMatch: ".(json|xml|html|txt)$" }
260
237
  },
261
238
  severity: DiagnosticSeverity.Error
@@ -267,7 +244,7 @@ var ruleset_default = {
267
244
  message: "{{property}} is not kebab-case: {{error}}",
268
245
  given: "$.paths[*]~",
269
246
  then: {
270
- function: __stoplight_spectral_functions.pattern,
247
+ function: _stoplight_spectral_functions.pattern,
271
248
  functionOptions: { match: "^/([a-z0-9]+(-[a-z0-9]+)*)?(/[a-z0-9]+(-[a-z0-9]+)*|/{.+})*$" }
272
249
  }
273
250
  },
@@ -278,7 +255,7 @@ var ruleset_default = {
278
255
  message: "{{property}} is not hyphenated-pascal-case: {{error}}",
279
256
  given: "$..parameters[?(@.in == 'header')].name",
280
257
  then: {
281
- function: __stoplight_spectral_functions.pattern,
258
+ function: _stoplight_spectral_functions.pattern,
282
259
  functionOptions: { match: "^[A-Z][a-z0-9]*(-[A-Z][a-z0-9]*)*$" }
283
260
  }
284
261
  },
@@ -287,7 +264,7 @@ var ruleset_default = {
287
264
  description: "The info.version field should follow semantic versioning (e.g., 1.0.0).",
288
265
  given: "$.info.version",
289
266
  then: {
290
- function: __stoplight_spectral_functions.pattern,
267
+ function: _stoplight_spectral_functions.pattern,
291
268
  functionOptions: { match: "^\\d+\\.\\d+\\.\\d+" }
292
269
  },
293
270
  severity: DiagnosticSeverity.Warning
@@ -4,127 +4,127 @@ import { oas2, oas3 } from "@stoplight/spectral-formats";
4
4
 
5
5
  //#region node_modules/.pnpm/@stoplight+types@14.1.1/node_modules/@stoplight/types/dist/index.mjs
6
6
  var HttpOperationSecurityDeclarationTypes;
7
- (function(HttpOperationSecurityDeclarationTypes$1) {
7
+ (function(HttpOperationSecurityDeclarationTypes) {
8
8
  /** Indicates that the operation has no security declarations. */
9
- HttpOperationSecurityDeclarationTypes$1["None"] = "none";
9
+ HttpOperationSecurityDeclarationTypes["None"] = "none";
10
10
  /** Indicates that the operation has explicit security declarations. */
11
- HttpOperationSecurityDeclarationTypes$1["Declared"] = "declared";
11
+ HttpOperationSecurityDeclarationTypes["Declared"] = "declared";
12
12
  /** Indicates that the operation inherits its security declarations from the service. */
13
- HttpOperationSecurityDeclarationTypes$1["InheritedFromService"] = "inheritedFromService";
13
+ HttpOperationSecurityDeclarationTypes["InheritedFromService"] = "inheritedFromService";
14
14
  })(HttpOperationSecurityDeclarationTypes || (HttpOperationSecurityDeclarationTypes = {}));
15
15
  var HttpParamStyles;
16
- (function(HttpParamStyles$1) {
16
+ (function(HttpParamStyles) {
17
17
  /** Used when OAS2 type !== array */
18
- HttpParamStyles$1["Unspecified"] = "unspecified";
18
+ HttpParamStyles["Unspecified"] = "unspecified";
19
19
  /**
20
20
  * OAS 3.x style simple
21
21
  * OAS 2 collectionFormat csv
22
22
  */
23
- HttpParamStyles$1["Simple"] = "simple";
23
+ HttpParamStyles["Simple"] = "simple";
24
24
  /**
25
25
  * OAS 3.x style matrix
26
26
  * OAS 2 collectionFormat no support
27
27
  */
28
- HttpParamStyles$1["Matrix"] = "matrix";
28
+ HttpParamStyles["Matrix"] = "matrix";
29
29
  /**
30
30
  * OAS 3.x style label
31
31
  * OAS 2 collectionFormat no support
32
32
  */
33
- HttpParamStyles$1["Label"] = "label";
33
+ HttpParamStyles["Label"] = "label";
34
34
  /**
35
35
  * OAS 3.x style form
36
36
  * OAS 2 collectionFormat
37
37
  * * csv, when explode === false
38
38
  * * multi, when explode === true
39
39
  */
40
- HttpParamStyles$1["Form"] = "form";
40
+ HttpParamStyles["Form"] = "form";
41
41
  /**
42
42
  * OAS 3.x no support
43
43
  * OAS 2 collectionFormat csv when explode === undefined
44
44
  */
45
- HttpParamStyles$1["CommaDelimited"] = "commaDelimited";
45
+ HttpParamStyles["CommaDelimited"] = "commaDelimited";
46
46
  /**
47
47
  * OAS 3.x style spaceDelimited
48
48
  * OAS 2 collectionFormat ssv
49
49
  */
50
- HttpParamStyles$1["SpaceDelimited"] = "spaceDelimited";
50
+ HttpParamStyles["SpaceDelimited"] = "spaceDelimited";
51
51
  /**
52
52
  * OAS 3.x style spaceDelimited
53
53
  * OAS 2 collectionFormat pipes
54
54
  */
55
- HttpParamStyles$1["PipeDelimited"] = "pipeDelimited";
55
+ HttpParamStyles["PipeDelimited"] = "pipeDelimited";
56
56
  /**
57
57
  * OAS 3.x style deepObject
58
58
  * OAS 2 collectionFormat no support
59
59
  */
60
- HttpParamStyles$1["DeepObject"] = "deepObject";
60
+ HttpParamStyles["DeepObject"] = "deepObject";
61
61
  /**
62
62
  * OAS 3.x style no support
63
63
  * OAS 2 collectionFormat tsv
64
64
  */
65
- HttpParamStyles$1["TabDelimited"] = "tabDelimited";
65
+ HttpParamStyles["TabDelimited"] = "tabDelimited";
66
66
  })(HttpParamStyles || (HttpParamStyles = {}));
67
67
  /**
68
68
  * Represents the severity of diagnostics.
69
69
  */
70
70
  var DiagnosticSeverity;
71
- (function(DiagnosticSeverity$1) {
71
+ (function(DiagnosticSeverity) {
72
72
  /**
73
73
  * Something not allowed by the rules of a language or other means.
74
74
  */
75
- DiagnosticSeverity$1[DiagnosticSeverity$1["Error"] = 0] = "Error";
75
+ DiagnosticSeverity[DiagnosticSeverity["Error"] = 0] = "Error";
76
76
  /**
77
77
  * Something suspicious but allowed.
78
78
  */
79
- DiagnosticSeverity$1[DiagnosticSeverity$1["Warning"] = 1] = "Warning";
79
+ DiagnosticSeverity[DiagnosticSeverity["Warning"] = 1] = "Warning";
80
80
  /**
81
81
  * Something to inform about but not a problem.
82
82
  */
83
- DiagnosticSeverity$1[DiagnosticSeverity$1["Information"] = 2] = "Information";
83
+ DiagnosticSeverity[DiagnosticSeverity["Information"] = 2] = "Information";
84
84
  /**
85
85
  * Something to hint to a better way of doing it, like proposing
86
86
  * a refactoring.
87
87
  */
88
- DiagnosticSeverity$1[DiagnosticSeverity$1["Hint"] = 3] = "Hint";
88
+ DiagnosticSeverity[DiagnosticSeverity["Hint"] = 3] = "Hint";
89
89
  })(DiagnosticSeverity || (DiagnosticSeverity = {}));
90
90
  /**
91
91
  * Stoplight node types
92
92
  */
93
93
  var NodeType;
94
- (function(NodeType$1) {
95
- NodeType$1["Article"] = "article";
96
- NodeType$1["HttpService"] = "http_service";
97
- NodeType$1["HttpServer"] = "http_server";
98
- NodeType$1["HttpOperation"] = "http_operation";
99
- NodeType$1["HttpCallback"] = "http_callback";
100
- NodeType$1["HttpWebhook"] = "http_webhook";
101
- NodeType$1["Model"] = "model";
102
- NodeType$1["Generic"] = "generic";
103
- NodeType$1["Unknown"] = "unknown";
104
- NodeType$1["TableOfContents"] = "table_of_contents";
105
- NodeType$1["SpectralRuleset"] = "spectral_ruleset";
106
- NodeType$1["Styleguide"] = "styleguide";
107
- NodeType$1["Image"] = "image";
108
- NodeType$1["StoplightResolutions"] = "stoplight_resolutions";
109
- NodeType$1["StoplightOverride"] = "stoplight_override";
94
+ (function(NodeType) {
95
+ NodeType["Article"] = "article";
96
+ NodeType["HttpService"] = "http_service";
97
+ NodeType["HttpServer"] = "http_server";
98
+ NodeType["HttpOperation"] = "http_operation";
99
+ NodeType["HttpCallback"] = "http_callback";
100
+ NodeType["HttpWebhook"] = "http_webhook";
101
+ NodeType["Model"] = "model";
102
+ NodeType["Generic"] = "generic";
103
+ NodeType["Unknown"] = "unknown";
104
+ NodeType["TableOfContents"] = "table_of_contents";
105
+ NodeType["SpectralRuleset"] = "spectral_ruleset";
106
+ NodeType["Styleguide"] = "styleguide";
107
+ NodeType["Image"] = "image";
108
+ NodeType["StoplightResolutions"] = "stoplight_resolutions";
109
+ NodeType["StoplightOverride"] = "stoplight_override";
110
110
  })(NodeType || (NodeType = {}));
111
111
  /**
112
112
  * Node data formats
113
113
  */
114
114
  var NodeFormat;
115
- (function(NodeFormat$1) {
116
- NodeFormat$1["Json"] = "json";
117
- NodeFormat$1["Markdown"] = "markdown";
118
- NodeFormat$1["Yaml"] = "yaml";
119
- NodeFormat$1["Javascript"] = "javascript";
120
- NodeFormat$1["Apng"] = "apng";
121
- NodeFormat$1["Avif"] = "avif";
122
- NodeFormat$1["Bmp"] = "bmp";
123
- NodeFormat$1["Gif"] = "gif";
124
- NodeFormat$1["Jpeg"] = "jpeg";
125
- NodeFormat$1["Png"] = "png";
126
- NodeFormat$1["Svg"] = "svg";
127
- NodeFormat$1["Webp"] = "webp";
115
+ (function(NodeFormat) {
116
+ NodeFormat["Json"] = "json";
117
+ NodeFormat["Markdown"] = "markdown";
118
+ NodeFormat["Yaml"] = "yaml";
119
+ NodeFormat["Javascript"] = "javascript";
120
+ NodeFormat["Apng"] = "apng";
121
+ NodeFormat["Avif"] = "avif";
122
+ NodeFormat["Bmp"] = "bmp";
123
+ NodeFormat["Gif"] = "gif";
124
+ NodeFormat["Jpeg"] = "jpeg";
125
+ NodeFormat["Png"] = "png";
126
+ NodeFormat["Svg"] = "svg";
127
+ NodeFormat["Webp"] = "webp";
128
128
  })(NodeFormat || (NodeFormat = {}));
129
129
 
130
130
  //#endregion
package/package.json CHANGED
@@ -1,43 +1,44 @@
1
1
  {
2
2
  "name": "@luxass/spectral-ruleset",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Opinonated ruleset for Spectral",
5
5
  "type": "module",
6
+ "packageManager": "pnpm@10.28.2",
6
7
  "repository": {
7
8
  "type": "git",
8
9
  "url": "git+https://github.com/luxass/spectral-ruleset.git"
9
10
  },
10
11
  "exports": {
11
12
  ".": {
12
- "import": "./dist/ruleset.js",
13
+ "import": "./dist/ruleset.mjs",
13
14
  "require": "./dist/ruleset.cjs"
14
15
  },
15
16
  "./package.json": "./package.json"
16
17
  },
17
18
  "main": "./dist/ruleset.cjs",
18
- "module": "./dist/ruleset.js",
19
+ "module": "./dist/ruleset.mjs",
19
20
  "files": [
20
21
  "dist"
21
22
  ],
23
+ "scripts": {
24
+ "build": "tsdown",
25
+ "test": "vitest run",
26
+ "lint": "eslint .",
27
+ "typecheck": "tsc --noEmit"
28
+ },
22
29
  "devDependencies": {
23
- "@luxass/eslint-config": "^5.1.1",
24
- "@stoplight/spectral-core": "^1.20.0",
30
+ "@luxass/eslint-config": "^6.0.3",
31
+ "@stoplight/spectral-core": "^1.21.0",
25
32
  "@stoplight/spectral-formats": "^1.8.2",
26
33
  "@stoplight/spectral-functions": "^1.10.1",
27
34
  "@stoplight/spectral-ref-resolver": "^1.0.5",
28
35
  "@stoplight/spectral-rulesets": "^1.22.0",
29
36
  "@stoplight/types": "^14.1.1",
30
- "@types/node": "^22.15.18",
31
- "eslint": "^9.31.0",
32
- "publint": "^0.3.12",
33
- "tsdown": "^0.12.9",
34
- "typescript": "^5.8.3",
35
- "vitest": "^3.2.4"
36
- },
37
- "scripts": {
38
- "build": "tsdown",
39
- "test": "vitest run",
40
- "lint": "eslint .",
41
- "typecheck": "tsc --noEmit"
37
+ "@types/node": "^22.16.4",
38
+ "eslint": "^9.39.2",
39
+ "publint": "^0.3.17",
40
+ "tsdown": "^0.20.1",
41
+ "typescript": "^5.9.3",
42
+ "vitest": "^4.0.18"
42
43
  }
43
- }
44
+ }