@azure-tools/typespec-azure-core 0.36.0 → 0.37.0-dev.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/src/rules/byos.js +1 -1
- package/dist/src/rules/byos.js.map +1 -1
- package/package.json +14 -13
package/dist/src/rules/byos.js
CHANGED
|
@@ -6,7 +6,7 @@ export const byosRule = createRule({
|
|
|
6
6
|
description: "Use the BYOS pattern recommended for Azure Services.",
|
|
7
7
|
severity: "warning",
|
|
8
8
|
messages: {
|
|
9
|
-
default: paramMessage `The content type "${"contentType"}" indicates this operation is storing binary data. It is recommended to use the BYOS pattern for Azure Services. https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#bring-your-own-storage-byos`,
|
|
9
|
+
default: paramMessage `The content type "${"contentType"}" indicates this operation is storing or retrieving binary data. It is recommended to use the BYOS pattern for Azure Services. https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#bring-your-own-storage-byos`,
|
|
10
10
|
},
|
|
11
11
|
create(context) {
|
|
12
12
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"byos.js","sourceRoot":"","sources":["../../../src/rules/byos.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY,CAAA,qBAAqB,aAAa,
|
|
1
|
+
{"version":3,"file":"byos.js","sourceRoot":"","sources":["../../../src/rules/byos.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;IACjC,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE;QACR,OAAO,EAAE,YAAY,CAAA,qBAAqB,aAAa,uOAAuO;KAC/R;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,SAAoB,EAAE,EAAE;gBAClC,IAAI,kBAAkB,CAAC,SAAS,CAAC,EAAE;oBACjC,gGAAgG;oBAChG,OAAO;iBACR;gBACD,MAAM,aAAa,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;gBACtF,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,KAAK,SAAS,EAAE;oBAC/C,KAAK,MAAM,WAAW,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,EAAE;wBACpE,IAAI,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;4BACvC,OAAO,CAAC,gBAAgB,CAAC;gCACvB,MAAM,EAAE,EAAE,WAAW,EAAE;gCACvB,MAAM,EAAE,SAAS;6BAClB,CAAC,CAAC;yBACJ;qBACF;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.
|
|
3
|
+
"version": "0.37.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Core library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"!dist/test/**"
|
|
39
39
|
],
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@typespec/compiler": "~0.50.0",
|
|
42
|
-
"@typespec/http": "~0.50.0",
|
|
43
|
-
"@typespec/rest": "~0.50.0"
|
|
41
|
+
"@typespec/compiler": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
42
|
+
"@typespec/http": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
43
|
+
"@typespec/rest": "~0.50.0 || >=0.51.0-dev <0.51.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@typespec/compiler": "~0.50.0",
|
|
47
|
-
"@typespec/http": "~0.50.0",
|
|
48
|
-
"@typespec/rest": "~0.50.0",
|
|
49
|
-
"@typespec/eslint-config-typespec": "~0.50.0",
|
|
50
|
-
"@typespec/library-linter": "~0.50.0",
|
|
51
|
-
"@typespec/eslint-plugin": "~0.50.0",
|
|
52
|
-
"@typespec/openapi": "~0.50.0",
|
|
53
|
-
"@typespec/tspd": "~0.46.0",
|
|
54
|
-
"@typespec/versioning": "~0.50.0",
|
|
46
|
+
"@typespec/compiler": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
47
|
+
"@typespec/http": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
48
|
+
"@typespec/rest": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
49
|
+
"@typespec/eslint-config-typespec": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
50
|
+
"@typespec/library-linter": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
51
|
+
"@typespec/eslint-plugin": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
52
|
+
"@typespec/openapi": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
53
|
+
"@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
|
|
54
|
+
"@typespec/versioning": "~0.50.0 || >=0.51.0-dev <0.51.0",
|
|
55
55
|
"@types/mocha": "~10.0.1",
|
|
56
56
|
"@types/node": "~18.11.9",
|
|
57
57
|
"eslint": "^8.49.0",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"rimraf": "~5.0.1",
|
|
63
63
|
"typescript": "~5.2.2"
|
|
64
64
|
},
|
|
65
|
+
"dependencies": {},
|
|
65
66
|
"scripts": {
|
|
66
67
|
"clean": "rimraf ./dist ./temp",
|
|
67
68
|
"build": "tsc -p . && npm run lint-typespec-library",
|