From 209f23e24c01894e0dd5b2e1e69fabd686fc6999 Mon Sep 17 00:00:00 2001 From: Hans-Joachim Krauch Date: Thu, 9 Nov 2023 11:39:16 -0300 Subject: [PATCH] deprecate service requestSchema & responseSchema fields --- typescript/ws-protocol/src/types.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/typescript/ws-protocol/src/types.ts b/typescript/ws-protocol/src/types.ts index cde7ce77..6c0aef03 100644 --- a/typescript/ws-protocol/src/types.ts +++ b/typescript/ws-protocol/src/types.ts @@ -54,8 +54,16 @@ export type Service = { type: string; request?: ServiceRequestDefinition; // Must be given if requestSchema is not given. response?: ServiceResponseDefinition; // Must be given if responseSchema is not given. - requestSchema?: string; // Must be given if request is not given. - responseSchema?: string; // Must be given if response is not given. + /** + * Must be given if request is not given. + * @deprecated Use request instead. + */ + requestSchema?: string; + /** + * Must be given if response is not given. + * @deprecated Use response instead. + */ + responseSchema?: string; }; export type Subscribe = {