@azure-tools/typespec-azure-core 0.30.0-dev.23 → 0.30.0-dev.25
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 +59 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +12 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +2 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/casing.d.ts.map +1 -1
- package/dist/src/rules/casing.js +11 -0
- package/dist/src/rules/casing.js.map +1 -1
- package/dist/src/rules/use-standard-names.d.ts +2 -0
- package/dist/src/rules/use-standard-names.d.ts.map +1 -0
- package/dist/src/rules/use-standard-names.js +94 -0
- package/dist/src/rules/use-standard-names.js.map +1 -0
- package/lib/operations.tsp +3 -3
- package/package.json +1 -1
package/dist/src/lib.d.ts
CHANGED
|
@@ -106,6 +106,18 @@ export declare const libDef: {
|
|
|
106
106
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
|
+
readonly "use-standard-names": {
|
|
110
|
+
readonly severity: "warning";
|
|
111
|
+
readonly messages: {
|
|
112
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
113
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
114
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
115
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
116
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
117
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
118
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
109
121
|
readonly "use-standard-operations": {
|
|
110
122
|
readonly severity: "warning";
|
|
111
123
|
readonly messages: {
|
|
@@ -301,6 +313,15 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
301
313
|
"use-extensible-enum": {
|
|
302
314
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
303
315
|
};
|
|
316
|
+
"use-standard-names": {
|
|
317
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
318
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
319
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
320
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
321
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
322
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
323
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
324
|
+
};
|
|
304
325
|
"use-standard-operations": {
|
|
305
326
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
306
327
|
};
|
|
@@ -372,7 +393,7 @@ export declare const $lib: import("@typespec/compiler").TypeSpecLibrary<{
|
|
|
372
393
|
readonly array: "Body schema should not be of raw array type.";
|
|
373
394
|
};
|
|
374
395
|
}, Record<string, any>>;
|
|
375
|
-
export declare const reportDiagnostic: <C extends "byos" | "operation-missing-api-version" | "casing-style" | "prefer-csv-collection-format" | "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" | "response-schema-problem" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-operations" | "no-format" | "no-order-by" | "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-nullable" | "no-object" | "no-offsetdatetime" | "property-name-conflict" | "no-operation-id" | "invalid-body-schema", M extends keyof {
|
|
396
|
+
export declare const reportDiagnostic: <C extends "byos" | "operation-missing-api-version" | "casing-style" | "prefer-csv-collection-format" | "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" | "response-schema-problem" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-names" | "use-standard-operations" | "no-format" | "no-order-by" | "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-nullable" | "no-object" | "no-offsetdatetime" | "property-name-conflict" | "no-operation-id" | "invalid-body-schema", M extends keyof {
|
|
376
397
|
byos: {
|
|
377
398
|
readonly default: import("@typespec/compiler").CallableMessage<["contentType"]>;
|
|
378
399
|
};
|
|
@@ -426,6 +447,15 @@ export declare const reportDiagnostic: <C extends "byos" | "operation-missing-ap
|
|
|
426
447
|
"use-extensible-enum": {
|
|
427
448
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
428
449
|
};
|
|
450
|
+
"use-standard-names": {
|
|
451
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
452
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
453
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
454
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
455
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
456
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
457
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
458
|
+
};
|
|
429
459
|
"use-standard-operations": {
|
|
430
460
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
431
461
|
};
|
|
@@ -550,6 +580,15 @@ export declare const reportDiagnostic: <C extends "byos" | "operation-missing-ap
|
|
|
550
580
|
"use-extensible-enum": {
|
|
551
581
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
552
582
|
};
|
|
583
|
+
"use-standard-names": {
|
|
584
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
585
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
586
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
587
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
588
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
589
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
590
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
591
|
+
};
|
|
553
592
|
"use-standard-operations": {
|
|
554
593
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
555
594
|
};
|
|
@@ -620,7 +659,7 @@ export declare const reportDiagnostic: <C extends "byos" | "operation-missing-ap
|
|
|
620
659
|
"invalid-body-schema": {
|
|
621
660
|
readonly array: "Body schema should not be of raw array type.";
|
|
622
661
|
};
|
|
623
|
-
}, C, M>) => void, createDiagnostic: <C extends "byos" | "operation-missing-api-version" | "casing-style" | "prefer-csv-collection-format" | "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" | "response-schema-problem" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-operations" | "no-format" | "no-order-by" | "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-nullable" | "no-object" | "no-offsetdatetime" | "property-name-conflict" | "no-operation-id" | "invalid-body-schema", M extends keyof {
|
|
662
|
+
}, C, M>) => void, createDiagnostic: <C extends "byos" | "operation-missing-api-version" | "casing-style" | "prefer-csv-collection-format" | "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" | "response-schema-problem" | "no-multiple-discriminator" | "no-fixed-enum-discriminator" | "operation-link-parameter-invalid" | "invalid-resource-type" | "use-extensible-enum" | "use-standard-names" | "use-standard-operations" | "no-format" | "no-order-by" | "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-nullable" | "no-object" | "no-offsetdatetime" | "property-name-conflict" | "no-operation-id" | "invalid-body-schema", M extends keyof {
|
|
624
663
|
byos: {
|
|
625
664
|
readonly default: import("@typespec/compiler").CallableMessage<["contentType"]>;
|
|
626
665
|
};
|
|
@@ -674,6 +713,15 @@ export declare const reportDiagnostic: <C extends "byos" | "operation-missing-ap
|
|
|
674
713
|
"use-extensible-enum": {
|
|
675
714
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
676
715
|
};
|
|
716
|
+
"use-standard-names": {
|
|
717
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
718
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
719
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
720
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
721
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
722
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
723
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
724
|
+
};
|
|
677
725
|
"use-standard-operations": {
|
|
678
726
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
679
727
|
};
|
|
@@ -798,6 +846,15 @@ export declare const reportDiagnostic: <C extends "byos" | "operation-missing-ap
|
|
|
798
846
|
"use-extensible-enum": {
|
|
799
847
|
readonly default: "Enums should be defined without the `@fixed` decorator.";
|
|
800
848
|
};
|
|
849
|
+
"use-standard-names": {
|
|
850
|
+
readonly get: "GET operations that return single objects should start with 'get'";
|
|
851
|
+
readonly list: "GET operations that return lists should start with 'list'";
|
|
852
|
+
readonly createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'";
|
|
853
|
+
readonly putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'";
|
|
854
|
+
readonly putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'";
|
|
855
|
+
readonly patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'";
|
|
856
|
+
readonly delete: "DELETE operations should start with 'delete'";
|
|
857
|
+
};
|
|
801
858
|
"use-standard-operations": {
|
|
802
859
|
readonly default: import("@typespec/compiler").CallableMessage<["name"]>;
|
|
803
860
|
};
|
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","sour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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAAE,iBAAiB,0BAAS,CAAC"}
|
package/dist/src/lib.js
CHANGED
|
@@ -107,6 +107,18 @@ export const libDef = {
|
|
|
107
107
|
default: "Enums should be defined without the `@fixed` decorator.",
|
|
108
108
|
},
|
|
109
109
|
},
|
|
110
|
+
"use-standard-names": {
|
|
111
|
+
severity: "warning",
|
|
112
|
+
messages: {
|
|
113
|
+
get: "GET operations that return single objects should start with 'get'",
|
|
114
|
+
list: "GET operations that return lists should start with 'list'",
|
|
115
|
+
createOrReplace: "PUT operations that return both 201 and 200 should start with 'createOrReplace'",
|
|
116
|
+
putCreate: "PUT operations that return 201 should start with 'create' or 'createOrReplace'",
|
|
117
|
+
putReplace: "PUT operations that return 200 should start with 'replace' or 'createOrReplace'",
|
|
118
|
+
patch: "PATCH operations that return 201 should start with 'create', 'update', or 'createOrUpdate'",
|
|
119
|
+
delete: "DELETE operations should start with 'delete'",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
110
122
|
"use-standard-operations": {
|
|
111
123
|
severity: "warning",
|
|
112
124
|
messages: {
|
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,IAAI,EAAE;YACJ,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,OAAO,EAAE,YAAY,CAAA,qBAAqB,aAAa,yNAAyN;aACjR;SACF;QACD,+BAA+B,EAAE;YAC/B,QAAQ,EAAE,SAAS;YACnB,QAAQ,EAAE;gBACR,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F;aAC3F;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,iBAAiB,EAAE;YACjB,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;AA4D7C,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,QAM3C"}
|
package/dist/src/linter.js
CHANGED
|
@@ -22,6 +22,7 @@ import { bodyArrayRule } from "./rules/request-body-array.js";
|
|
|
22
22
|
import { requireDocumentation } from "./rules/require-docs.js";
|
|
23
23
|
import { requireKeyVisibility } from "./rules/require-key-visibility.js";
|
|
24
24
|
import { responseSchemaMultiStatusCodeRule } from "./rules/response-schema-multi-status-code.js";
|
|
25
|
+
import { useStandardNames } from "./rules/use-standard-names.js";
|
|
25
26
|
import { useStandardOperations } from "./rules/use-standard-ops.js";
|
|
26
27
|
const linter = getLinter($lib);
|
|
27
28
|
linter.registerRules([
|
|
@@ -47,6 +48,7 @@ linter.registerRules([
|
|
|
47
48
|
requireDocumentation,
|
|
48
49
|
requireKeyVisibility,
|
|
49
50
|
longRunningOperationsRequirePollingOperation,
|
|
51
|
+
useStandardNames,
|
|
50
52
|
], {
|
|
51
53
|
autoEnable: true,
|
|
52
54
|
});
|
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,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,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,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OA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B;IACrB,4BAA4B;IAC5B,cAAc;IACd,YAAY;IACZ,oBAAoB;IACpB,gBAAgB;IAChB,4BAA4B;IAC5B,4BAA4B;IAC5B,kBAAkB;IAClB,cAAc;IACd,iCAAiC;IACjC,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;IACpB,4CAA4C;IAC5C,gBAAgB;CACjB,EACD;IACE,UAAU,EAAE,IAAI;CACjB,CACF,CAAC;AAEF,MAAM,UAAU,WAAW,CAAC,OAAgB;IAC1C,MAAM,CAAC,eAAe,EAAE,CAAC;IACzB,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAE/B,wBAAwB;IACxB,cAAc,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"casing.d.ts","sourceRoot":"","sources":["../../../src/rules/casing.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"casing.d.ts","sourceRoot":"","sources":["../../../src/rules/casing.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,mCAyDrB,CAAC"}
|
package/dist/src/rules/casing.js
CHANGED
|
@@ -29,6 +29,17 @@ export const casingRule = createRule({
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
operation: (operation) => {
|
|
33
|
+
if (isExcludedCoreType(program, operation))
|
|
34
|
+
return;
|
|
35
|
+
if (!isCamelCaseNoAcronyms(operation.name)) {
|
|
36
|
+
reportDiagnostic(program, {
|
|
37
|
+
code: "casing-style",
|
|
38
|
+
format: { type: "Operation", casing: "camelCase" },
|
|
39
|
+
target: operation,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
},
|
|
32
43
|
interface: (operationGroup) => {
|
|
33
44
|
if (isExcludedCoreType(program, operationGroup))
|
|
34
45
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"casing.js","sourceRoot":"","sources":["../../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AAI,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE;wBACnD,MAAM,EAAE,cAAc;qBACvB,CAAC,CAAC;iBACJ;YACH,CAAC;YACD,SAAS,EAAE,CAAC,SAAoB,EAAE,EAAE;gBAClC,IAAI,kBAAkB,CAAC,OAAO,EAAE,SAAS,CAAC;oBAAE,OAAO;gBACnD,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;oBAC3C,gBAAgB,CAAC,OAAO,EAAE;wBACxB,IAAI,EAAE,cAAc;wBACpB,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE;wBACnD,MAAM,EAAE,SAAS;qBAClB,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-standard-names.d.ts","sourceRoot":"","sources":["../../../src/rules/use-standard-names.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,gBAAgB,mCAwE3B,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { ignoreDiagnostics, isListOperation, } from "@typespec/compiler";
|
|
2
|
+
import { getHttpOperation } from "@typespec/http";
|
|
3
|
+
import { createRule } from "@typespec/lint";
|
|
4
|
+
import { getPagedResult } from "../decorators.js";
|
|
5
|
+
import { reportDiagnostic } from "../lib.js";
|
|
6
|
+
import { isExcludedCoreType } from "./utils.js";
|
|
7
|
+
function isArmProviderNamespace(ns) {
|
|
8
|
+
if (!ns)
|
|
9
|
+
return false;
|
|
10
|
+
for (const dec of ns.decorators) {
|
|
11
|
+
if (dec.decorator.name === "$armProviderNamespace") {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
function isArmResourceOperations(inter) {
|
|
18
|
+
if (!inter)
|
|
19
|
+
return false;
|
|
20
|
+
for (const dec of inter.decorators) {
|
|
21
|
+
if (dec.decorator.name === "$armResourceOperations") {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
export const useStandardNames = createRule({
|
|
28
|
+
name: "use-standard-names",
|
|
29
|
+
create({ program }) {
|
|
30
|
+
return {
|
|
31
|
+
operation: (op) => {
|
|
32
|
+
if (isArmProviderNamespace(op.namespace))
|
|
33
|
+
return;
|
|
34
|
+
if (isArmResourceOperations(op.interface))
|
|
35
|
+
return;
|
|
36
|
+
if (isExcludedCoreType(program, op))
|
|
37
|
+
return;
|
|
38
|
+
const httpOp = ignoreDiagnostics(getHttpOperation(program, op));
|
|
39
|
+
const verb = httpOp.verb;
|
|
40
|
+
const name = op.name;
|
|
41
|
+
const statusCodes = httpOp.responses.map((x) => x.statusCode.toString());
|
|
42
|
+
// operation is a list if it is decoratored as such (for example, through a template) or returns a paged result
|
|
43
|
+
const isList = isListOperation(program, op) || getPagedResult(program, op) !== undefined;
|
|
44
|
+
let errorMessage;
|
|
45
|
+
switch (verb) {
|
|
46
|
+
case "get":
|
|
47
|
+
if (isList && !name.startsWith("list")) {
|
|
48
|
+
errorMessage = "list";
|
|
49
|
+
}
|
|
50
|
+
else if (!isList && !name.startsWith("get")) {
|
|
51
|
+
errorMessage = "get";
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
case "put":
|
|
55
|
+
const is201 = statusCodes.includes("201");
|
|
56
|
+
const is200 = statusCodes.includes("200");
|
|
57
|
+
if (is201 && is200 && !name.startsWith("createOrReplace")) {
|
|
58
|
+
errorMessage = "createOrReplace";
|
|
59
|
+
}
|
|
60
|
+
else if (is201 &&
|
|
61
|
+
!is200 &&
|
|
62
|
+
!["create", "createOrReplace"].some((x) => name.startsWith(x))) {
|
|
63
|
+
errorMessage = "putCreate";
|
|
64
|
+
}
|
|
65
|
+
else if (is200 &&
|
|
66
|
+
!is201 &&
|
|
67
|
+
!["replace", "createOrReplace"].some((x) => name.startsWith(x))) {
|
|
68
|
+
errorMessage = "putReplace";
|
|
69
|
+
}
|
|
70
|
+
break;
|
|
71
|
+
case "patch":
|
|
72
|
+
const allowed = ["create", "update", "createOrUpdate".toLocaleLowerCase()];
|
|
73
|
+
if (statusCodes.includes("201") && !allowed.some((x) => name.startsWith(x))) {
|
|
74
|
+
errorMessage = "patch";
|
|
75
|
+
}
|
|
76
|
+
break;
|
|
77
|
+
case "delete":
|
|
78
|
+
if (!name.startsWith("delete")) {
|
|
79
|
+
errorMessage = "delete";
|
|
80
|
+
}
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
if (errorMessage !== undefined) {
|
|
84
|
+
reportDiagnostic(program, {
|
|
85
|
+
code: "use-standard-names",
|
|
86
|
+
messageId: errorMessage,
|
|
87
|
+
target: op,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
//# sourceMappingURL=use-standard-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-standard-names.js","sourceRoot":"","sources":["../../../src/rules/use-standard-names.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAEjB,eAAe,GAGhB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,SAAS,sBAAsB,CAAC,EAAyB;IACvD,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAC;IACtB,KAAK,MAAM,GAAG,IAAI,EAAE,CAAC,UAAU,EAAE;QAC/B,IAA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CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE;4BAC3E,YAAY,GAAG,OAAO,CAAC;yBACxB;wBACD,MAAM;oBACR,KAAK,QAAQ;wBACX,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;4BAC9B,YAAY,GAAG,QAAQ,CAAC;yBACzB;wBACD,MAAM;iBACT;gBACD,IAAI,YAAY,KAAK,SAAS,EAAE;oBAC9B,gBAAgB,CAAC,OAAO,EAAE;wBACxB,IAAI,EAAE,oBAAoB;wBAC1B,SAAS,EAAE,YAAY;wBACvB,MAAM,EAAE,EAAE;qBACX,CAAC,CAAC;iBACJ;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/lib/operations.tsp
CHANGED
|
@@ -416,7 +416,7 @@ op ResourceUpdate<
|
|
|
416
416
|
> is StandardResourceOperations.ResourceUpdate<TResource, Traits>;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
*
|
|
419
|
+
* Operation signature to synchronously create a resource with a service-provided name.
|
|
420
420
|
* @template TResource The type of the resource.
|
|
421
421
|
* @template Traits Traits to apply to the operation.
|
|
422
422
|
*/
|
|
@@ -438,7 +438,7 @@ op LongRunningResourceCreateWithServiceProvidedName<
|
|
|
438
438
|
> is StandardResourceOperations.LongRunningResourceCreateWithServiceProvidedName<TResource, Traits>;
|
|
439
439
|
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* Operation signature to retrieve a resource.
|
|
442
442
|
* @template TResource The type of the resource.
|
|
443
443
|
* @template Traits Traits to apply to the operation.
|
|
444
444
|
*/
|
|
@@ -449,7 +449,7 @@ op ResourceRead<
|
|
|
449
449
|
> is StandardResourceOperations.ResourceRead<TResource, Traits>;
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
|
-
*
|
|
452
|
+
* Operation signature to delete a resource.
|
|
453
453
|
* @template TResource The type of the resource.
|
|
454
454
|
* @template Traits Traits to apply to the operation.
|
|
455
455
|
*/
|
package/package.json
CHANGED