@typespec/prettier-plugin-typespec 0.52.0-dev.2 → 0.52.0-dev.3
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/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1088,6 +1088,25 @@ const diagnostics = {
|
|
|
1088
1088
|
wrongNumericEncodingType: paramMessage `Encoding '${"encoding"}' on type '${"type"}' is expected to be serialized as '${"expected"}' but got '${"actual"}'. Set '@encode' 2nd parameter to be of type ${"expected"}. e.g. '@encode("${"encoding"}", int32)'`,
|
|
1089
1089
|
},
|
|
1090
1090
|
},
|
|
1091
|
+
"invalid-mime-type": {
|
|
1092
|
+
severity: "error",
|
|
1093
|
+
messages: {
|
|
1094
|
+
default: paramMessage `Invalid mime type '${"mimeType"}'`,
|
|
1095
|
+
},
|
|
1096
|
+
},
|
|
1097
|
+
"no-mime-type-suffix": {
|
|
1098
|
+
severity: "error",
|
|
1099
|
+
messages: {
|
|
1100
|
+
default: paramMessage `Cannot use mime type '${"mimeType"}' with suffix '${"suffix"}'. Use a simple mime \`type/subtype\` instead.`,
|
|
1101
|
+
},
|
|
1102
|
+
},
|
|
1103
|
+
"encoded-name-conflict": {
|
|
1104
|
+
severity: "error",
|
|
1105
|
+
messages: {
|
|
1106
|
+
default: paramMessage `Encoded name '${"name"}' conflicts with existing member name for mime type '${"mimeType"}'`,
|
|
1107
|
+
duplicate: paramMessage `Same encoded name '${"name"}' is used for 2 members '${"mimeType"}'`,
|
|
1108
|
+
},
|
|
1109
|
+
},
|
|
1091
1110
|
/**
|
|
1092
1111
|
* Service
|
|
1093
1112
|
*/
|