You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default: paramMessage`The 'contents' property of the file model must be a scalar type that extends 'string' or 'bytes'. Found '${"type"}'.`,
196
196
},
197
197
},
198
+
"deprecated-implicit-optionality": {
199
+
severity: "warning",
200
+
messages: {
201
+
default: `The implicitOptionality option is deprecated. To preserve previous behavior, use an explicit patch model with optional properties. For actual merge-patch semantics, use MergePatchUpdate<T> for the @body type.`,
"The implicitOptionality option is deprecated. To preserve previous behavior, use an explicit patch model with optional properties. For actual merge-patch semantics, use MergePatchUpdate<T> for the @body type.",
63
+
});
64
+
});
65
+
66
+
it(`@patch does not emit deprecation warning when implicitOptionality: false`,async()=>{
67
+
constdiagnostics=awaitTester.diagnose(`
68
+
@patch(#{ implicitOptionality: false }) op test(): string;
0 commit comments