@azure-tools/typespec-azure-core 0.30.0-dev.6 → 0.30.0-dev.8
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/src/lib.d.ts +65 -23
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +18 -6
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +4 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/avoid-operation-id.d.ts +2 -0
- package/dist/src/rules/avoid-operation-id.d.ts.map +1 -0
- package/dist/src/rules/avoid-operation-id.js +23 -0
- package/dist/src/rules/avoid-operation-id.js.map +1 -0
- package/dist/src/rules/request-body-array.d.ts +2 -0
- package/dist/src/rules/request-body-array.d.ts.map +1 -0
- package/dist/src/rules/request-body-array.js +22 -0
- package/dist/src/rules/request-body-array.js.map +1 -0
- package/package.json +2 -1
package/dist/src/lib.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export declare const libDef: {
|
|
|
39
39
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
+
readonly "request-body-problem": {
|
|
43
|
+
readonly severity: "warning";
|
|
44
|
+
readonly messages: {
|
|
45
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
42
48
|
readonly "response-property-invalid": {
|
|
43
49
|
readonly severity: "error";
|
|
44
50
|
readonly messages: {
|
|
@@ -63,12 +69,6 @@ export declare const libDef: {
|
|
|
63
69
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
64
70
|
};
|
|
65
71
|
};
|
|
66
|
-
readonly "client-definition-parameters-not-model": {
|
|
67
|
-
readonly severity: "error";
|
|
68
|
-
readonly messages: {
|
|
69
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
72
|
readonly "invalid-resource-type": {
|
|
73
73
|
readonly severity: "error";
|
|
74
74
|
readonly messages: {
|
|
@@ -191,6 +191,18 @@ export declare const libDef: {
|
|
|
191
191
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
+
readonly "avoid-operation-id": {
|
|
195
|
+
readonly severity: "warning";
|
|
196
|
+
readonly messages: {
|
|
197
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly "invalid-body-schema": {
|
|
201
|
+
readonly severity: "warning";
|
|
202
|
+
readonly messages: {
|
|
203
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
204
|
+
};
|
|
205
|
+
};
|
|
194
206
|
};
|
|
195
207
|
};
|
|
196
208
|
export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
@@ -213,6 +225,9 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
213
225
|
"request-parameter-invalid": {
|
|
214
226
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
215
227
|
};
|
|
228
|
+
"request-body-problem": {
|
|
229
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
230
|
+
};
|
|
216
231
|
"response-property-invalid": {
|
|
217
232
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
218
233
|
};
|
|
@@ -225,9 +240,6 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
225
240
|
"operation-link-parameter-invalid": {
|
|
226
241
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
227
242
|
};
|
|
228
|
-
"client-definition-parameters-not-model": {
|
|
229
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
230
|
-
};
|
|
231
243
|
"invalid-resource-type": {
|
|
232
244
|
readonly missingKey: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
233
245
|
readonly missingSegment: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
@@ -290,8 +302,14 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
290
302
|
readonly default: import("@typespec/compiler").CallableMessage<["propertyName"]>;
|
|
291
303
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
292
304
|
};
|
|
305
|
+
"avoid-operation-id": {
|
|
306
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
307
|
+
};
|
|
308
|
+
"invalid-body-schema": {
|
|
309
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
310
|
+
};
|
|
293
311
|
}, Record<string, any>>;
|
|
294
|
-
export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-union-non-string" | "lro-status-property-invalid-type" | "lro-status-missing" | "bad-record-type" | "request-parameter-invalid" | "response-property-invalid" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "
|
|
312
|
+
export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-union-non-string" | "lro-status-property-invalid-type" | "lro-status-missing" | "bad-record-type" | "request-parameter-invalid" | "request-body-problem" | "response-property-invalid" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-operations" | "no-format" | "no-rest-library-interfaces" | "no-unknown" | "documentation-required" | "key-visibility-required" | "long-running-polling-operation-required" | "rpc-operation-needs-route" | "invalid-trait-property-count" | "invalid-trait-property-type" | "invalid-trait-context" | "trait-property-without-location" | "expected-trait-missing" | "invalid-parameter" | "expected-success-response" | "lro-polling-data-missing-from-operation-response" | "no-object" | "property-name-conflict" | "avoid-operation-id" | "invalid-body-schema", M extends keyof {
|
|
295
313
|
"casing-style": {
|
|
296
314
|
readonly default: import("@typespec/compiler").CallableMessage<["type", "casing"]>;
|
|
297
315
|
};
|
|
@@ -311,6 +329,9 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
311
329
|
"request-parameter-invalid": {
|
|
312
330
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
313
331
|
};
|
|
332
|
+
"request-body-problem": {
|
|
333
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
334
|
+
};
|
|
314
335
|
"response-property-invalid": {
|
|
315
336
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
316
337
|
};
|
|
@@ -323,9 +344,6 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
323
344
|
"operation-link-parameter-invalid": {
|
|
324
345
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
325
346
|
};
|
|
326
|
-
"client-definition-parameters-not-model": {
|
|
327
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
328
|
-
};
|
|
329
347
|
"invalid-resource-type": {
|
|
330
348
|
readonly missingKey: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
331
349
|
readonly missingSegment: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
@@ -388,6 +406,12 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
388
406
|
readonly default: import("@typespec/compiler").CallableMessage<["propertyName"]>;
|
|
389
407
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
390
408
|
};
|
|
409
|
+
"avoid-operation-id": {
|
|
410
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
411
|
+
};
|
|
412
|
+
"invalid-body-schema": {
|
|
413
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
414
|
+
};
|
|
391
415
|
}[C]>(program: import("@typespec/compiler").Program, diag: import("@typespec/compiler").DiagnosticReport<{
|
|
392
416
|
"casing-style": {
|
|
393
417
|
readonly default: import("@typespec/compiler").CallableMessage<["type", "casing"]>;
|
|
@@ -408,6 +432,9 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
408
432
|
"request-parameter-invalid": {
|
|
409
433
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
410
434
|
};
|
|
435
|
+
"request-body-problem": {
|
|
436
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
437
|
+
};
|
|
411
438
|
"response-property-invalid": {
|
|
412
439
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
413
440
|
};
|
|
@@ -420,9 +447,6 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
420
447
|
"operation-link-parameter-invalid": {
|
|
421
448
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
422
449
|
};
|
|
423
|
-
"client-definition-parameters-not-model": {
|
|
424
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
425
|
-
};
|
|
426
450
|
"invalid-resource-type": {
|
|
427
451
|
readonly missingKey: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
428
452
|
readonly missingSegment: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
@@ -485,7 +509,13 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
485
509
|
readonly default: import("@typespec/compiler").CallableMessage<["propertyName"]>;
|
|
486
510
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
487
511
|
};
|
|
488
|
-
|
|
512
|
+
"avoid-operation-id": {
|
|
513
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
514
|
+
};
|
|
515
|
+
"invalid-body-schema": {
|
|
516
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
517
|
+
};
|
|
518
|
+
}, C, M>) => void, createDiagnostic: <C extends "casing-style" | "lro-status-union-non-string" | "lro-status-property-invalid-type" | "lro-status-missing" | "bad-record-type" | "request-parameter-invalid" | "request-body-problem" | "response-property-invalid" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-operations" | "no-format" | "no-rest-library-interfaces" | "no-unknown" | "documentation-required" | "key-visibility-required" | "long-running-polling-operation-required" | "rpc-operation-needs-route" | "invalid-trait-property-count" | "invalid-trait-property-type" | "invalid-trait-context" | "trait-property-without-location" | "expected-trait-missing" | "invalid-parameter" | "expected-success-response" | "lro-polling-data-missing-from-operation-response" | "no-object" | "property-name-conflict" | "avoid-operation-id" | "invalid-body-schema", M extends keyof {
|
|
489
519
|
"casing-style": {
|
|
490
520
|
readonly default: import("@typespec/compiler").CallableMessage<["type", "casing"]>;
|
|
491
521
|
};
|
|
@@ -505,6 +535,9 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
505
535
|
"request-parameter-invalid": {
|
|
506
536
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
507
537
|
};
|
|
538
|
+
"request-body-problem": {
|
|
539
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
540
|
+
};
|
|
508
541
|
"response-property-invalid": {
|
|
509
542
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
510
543
|
};
|
|
@@ -517,9 +550,6 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
517
550
|
"operation-link-parameter-invalid": {
|
|
518
551
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
519
552
|
};
|
|
520
|
-
"client-definition-parameters-not-model": {
|
|
521
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
522
|
-
};
|
|
523
553
|
"invalid-resource-type": {
|
|
524
554
|
readonly missingKey: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
525
555
|
readonly missingSegment: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
@@ -582,6 +612,12 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
582
612
|
readonly default: import("@typespec/compiler").CallableMessage<["propertyName"]>;
|
|
583
613
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
584
614
|
};
|
|
615
|
+
"avoid-operation-id": {
|
|
616
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
617
|
+
};
|
|
618
|
+
"invalid-body-schema": {
|
|
619
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
620
|
+
};
|
|
585
621
|
}[C]>(diag: import("@typespec/compiler").DiagnosticReport<{
|
|
586
622
|
"casing-style": {
|
|
587
623
|
readonly default: import("@typespec/compiler").CallableMessage<["type", "casing"]>;
|
|
@@ -602,6 +638,9 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
602
638
|
"request-parameter-invalid": {
|
|
603
639
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
604
640
|
};
|
|
641
|
+
"request-body-problem": {
|
|
642
|
+
readonly array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.";
|
|
643
|
+
};
|
|
605
644
|
"response-property-invalid": {
|
|
606
645
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
607
646
|
};
|
|
@@ -614,9 +653,6 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
614
653
|
"operation-link-parameter-invalid": {
|
|
615
654
|
readonly default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.";
|
|
616
655
|
};
|
|
617
|
-
"client-definition-parameters-not-model": {
|
|
618
|
-
readonly default: "The value for \"parameters\" property must be a model type";
|
|
619
|
-
};
|
|
620
656
|
"invalid-resource-type": {
|
|
621
657
|
readonly missingKey: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
622
658
|
readonly missingSegment: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
@@ -679,5 +715,11 @@ export declare const reportDiagnostic: <C extends "casing-style" | "lro-status-u
|
|
|
679
715
|
readonly default: import("@typespec/compiler").CallableMessage<["propertyName"]>;
|
|
680
716
|
readonly projectedName: import("@typespec/compiler").CallableMessage<["propertyName", "propertyName"]>;
|
|
681
717
|
};
|
|
718
|
+
"avoid-operation-id": {
|
|
719
|
+
readonly default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.";
|
|
720
|
+
};
|
|
721
|
+
"invalid-body-schema": {
|
|
722
|
+
readonly array: "Body schema should not be of raw array type.";
|
|
723
|
+
};
|
|
682
724
|
}, C, M>) => import("@typespec/compiler").Diagnostic, createStateSymbol: (name: string) => symbol;
|
|
683
725
|
//# sourceMappingURL=lib.d.ts.map
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,eAAe,CAAC;AAEtC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmNT,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAAgC,CAAC;AAClD,eAAO,MAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAAE,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAAE,iBAAiB,0BAAS,CAAC"}
|
package/dist/src/lib.js
CHANGED
|
@@ -40,6 +40,12 @@ export const libDef = {
|
|
|
40
40
|
default: paramMessage `Request parameter '${"name"}' not found on request body model.`,
|
|
41
41
|
},
|
|
42
42
|
},
|
|
43
|
+
"request-body-problem": {
|
|
44
|
+
severity: "warning",
|
|
45
|
+
messages: {
|
|
46
|
+
array: "Request body should not be of raw array type. Consider creating a container model that can add properties over time to avoid introducing breaking changes.",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
43
49
|
"response-property-invalid": {
|
|
44
50
|
severity: "error",
|
|
45
51
|
messages: {
|
|
@@ -64,12 +70,6 @@ export const libDef = {
|
|
|
64
70
|
default: "Parameters must be of template type RequestParameter<T> or ResponseProperty<T>.",
|
|
65
71
|
},
|
|
66
72
|
},
|
|
67
|
-
"client-definition-parameters-not-model": {
|
|
68
|
-
severity: "error",
|
|
69
|
-
messages: {
|
|
70
|
-
default: `The value for "parameters" property must be a model type`,
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
73
|
"invalid-resource-type": {
|
|
74
74
|
severity: "error",
|
|
75
75
|
messages: {
|
|
@@ -192,6 +192,18 @@ export const libDef = {
|
|
|
192
192
|
projectedName: paramMessage `Use of @projectedName on property '${"propertyName"}' results in '${"propertyName"}' having the same name as its enclosing type in C#. Please use a different @projectedName value.`,
|
|
193
193
|
},
|
|
194
194
|
},
|
|
195
|
+
"avoid-operation-id": {
|
|
196
|
+
severity: "warning",
|
|
197
|
+
messages: {
|
|
198
|
+
default: "Operation ID is automatically generated by the OpenAPI emitters and should not normally be specified.",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
"invalid-body-schema": {
|
|
202
|
+
severity: "warning",
|
|
203
|
+
messages: {
|
|
204
|
+
array: "Body schema should not be of raw array type.",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
195
207
|
},
|
|
196
208
|
};
|
|
197
209
|
export const $lib = createTypeSpecLibrary(libDef);
|
package/dist/src/lib.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEzE,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,kCAAkC;IACxC,WAAW,EAAE;QACX,cAAc,EAAE;YACd,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,gBAAgB,MAAM,mBAAmB,QAAQ,EAAE;aACzE;SACF;QACD,6BAA6B,EAAE;YAC7B,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,wCAAwC,MAAM,GAAG;aACvE;SACF;QACD,kCAAkC,EAAE;YAClC,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE;gBACR,OAAO,EAAE,sDAAsD;aAChE;SACF;QACD,o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E,SAAS;YACnB,QAAQ,EAAE;gBACR,OAAO,EACL,oIAAoI;aACvI;SACF;QACD,wBAAwB,EAAE;YACxB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,aAAa,cAAc,yMAAyM;gBACzP,aAAa,EAAE,YAAY,CAAA,sCAAsC,cAAc,iBAAiB,cAAc,kGAAkG;aACjN;SACF;QACD,oBAAoB,EAAE;YACpB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,OAAO,EACL,uGAAuG;aAC1G;SACF;QACD,qBAAqB,EAAE;YACrB,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,KAAK,EAAE,8CAA8C;aACtD;SACF;KACF;CACO,CAAC;AAEX,MAAM,CAAC,MAAM,IAAI,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAClD,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC"}
|
package/dist/src/linter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AA8C7C,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,QAM3C"}
|
package/dist/src/linter.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getLinter } from "@typespec/lint";
|
|
2
2
|
import { checkRpcRoutes } from "./decorators.js";
|
|
3
3
|
import { $lib } from "./lib.js";
|
|
4
|
+
import { avoidOperationIdRule } from "./rules/avoid-operation-id.js";
|
|
4
5
|
import { casingRule } from "./rules/casing.js";
|
|
5
6
|
import { extensibleEnumRule } from "./rules/extensible-enums.js";
|
|
6
7
|
import { longRunningOperationsRequirePollingOperation } from "./rules/lro-polling-operation.js";
|
|
@@ -12,11 +13,14 @@ import { preventRestLibraryInterfaces } from "./rules/prevent-rest-library.js";
|
|
|
12
13
|
import { preventUnknownType } from "./rules/prevent-unknown.js";
|
|
13
14
|
import { propertyNameRule } from "./rules/property-naming.js";
|
|
14
15
|
import { recordTypeRule } from "./rules/record-types.js";
|
|
16
|
+
import { bodyArrayRule } from "./rules/request-body-array.js";
|
|
15
17
|
import { requireDocumentation } from "./rules/require-docs.js";
|
|
16
18
|
import { requireKeyVisibility } from "./rules/require-key-visibility.js";
|
|
17
19
|
import { useStandardOperations } from "./rules/use-standard-ops.js";
|
|
18
20
|
const linter = getLinter($lib);
|
|
19
21
|
linter.registerRules([
|
|
22
|
+
avoidOperationIdRule,
|
|
23
|
+
bodyArrayRule,
|
|
20
24
|
casingRule,
|
|
21
25
|
extensibleEnumRule,
|
|
22
26
|
useStandardOperations,
|
package/dist/src/linter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAA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AC,OAAO,CAAC,CAAC;IAE/B,wBAAwB;IACxB,cAAc,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avoid-operation-id.d.ts","sourceRoot":"","sources":["../../../src/rules/avoid-operation-id.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,oBAAoB,mCAgB/B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRule } from "@typespec/lint";
|
|
2
|
+
import { getOperationId } from "@typespec/openapi";
|
|
3
|
+
import { reportDiagnostic } from "../lib.js";
|
|
4
|
+
import { isExcludedCoreType } from "./utils.js";
|
|
5
|
+
export const avoidOperationIdRule = createRule({
|
|
6
|
+
name: "avoid-operation-id",
|
|
7
|
+
create({ program }) {
|
|
8
|
+
return {
|
|
9
|
+
operation: (operation) => {
|
|
10
|
+
if (isExcludedCoreType(program, operation))
|
|
11
|
+
return;
|
|
12
|
+
if (getOperationId(program, operation)) {
|
|
13
|
+
reportDiagnostic(program, {
|
|
14
|
+
code: "avoid-operation-id",
|
|
15
|
+
format: { operationId: operation.name },
|
|
16
|
+
target: operation,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=avoid-operation-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avoid-operation-id.js","sourceRoot":"","sources":["../../../src/rules/avoid-operation-id.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG,UAAU,CAAC;IAC7C,IAAI,EAAE,oBAAoB;IAC1B,MAAM,CAAC,EAAE,OAAO,EAAE;QAChB,OAAO;YACL,SAAS,EAAE,CAAC,SAAoB,EAAE,EAAE;gBAClC,IAAI,kBAAkB,CAAC,OAAO,EAAE,SAAS,CAAC;oBAAE,OAAO;gBACnD,IAAI,cAAc,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE;oBACtC,gBAAgB,CAAC,OAAO,EAAE;wBACxB,IAAI,EAAE,oBAAoB;wBAC1B,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,CAAC,IAAI,EAAE;wBACvC,MAAM,EAAE,SAAS;qBAClB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-body-array.d.ts","sourceRoot":"","sources":["../../../src/rules/request-body-array.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa,mCAiBxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { isBody } from "@typespec/http";
|
|
2
|
+
import { createRule } from "@typespec/lint";
|
|
3
|
+
import { reportDiagnostic } from "../lib.js";
|
|
4
|
+
export const bodyArrayRule = createRule({
|
|
5
|
+
name: "request-body-array",
|
|
6
|
+
create({ program }) {
|
|
7
|
+
return {
|
|
8
|
+
operation: (op) => {
|
|
9
|
+
for (const prop of op.parameters.properties.values()) {
|
|
10
|
+
if (isBody(program, prop) && prop.type.kind === "Model" && prop.type.name === "Array") {
|
|
11
|
+
reportDiagnostic(program, {
|
|
12
|
+
code: "request-body-problem",
|
|
13
|
+
target: prop,
|
|
14
|
+
messageId: "array",
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=request-body-array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-body-array.js","sourceRoot":"","sources":["../../../src/rules/request-body-array.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAAC;IACtC,IAAI,EAAE,oBAAoB;IAC1B,MAAM,CAAC,EAAE,OAAO,EAAE;QAChB,OAAO;YACL,SAAS,EAAE,CAAC,EAAa,EAAE,EAAE;gBAC3B,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE;oBACpD,IAAI,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;wBACrF,gBAAgB,CAAC,OAAO,EAAE;4BACxB,IAAI,EAAE,sBAAsB;4BAC5B,MAAM,EAAE,IAAI;4BACZ,SAAS,EAAE,OAAO;yBACnB,CAAC,CAAC;qBACJ;iBACF;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-core",
|
|
3
|
-
"version": "0.30.0-dev.
|
|
3
|
+
"version": "0.30.0-dev.8",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@typespec/eslint-config-typespec": ">=0.6.0",
|
|
57
57
|
"@typespec/library-linter": ">=0.43.0",
|
|
58
58
|
"@typespec/eslint-plugin": ">=0.43.0",
|
|
59
|
+
"@typespec/openapi": ">=0.43.0",
|
|
59
60
|
"@typespec/versioning": ">=0.43.0",
|
|
60
61
|
"@types/mocha": "~10.0.0",
|
|
61
62
|
"@types/node": "~18.11.9",
|