Skip to content

Commit

Permalink
deprecate service requestSchema & responseSchema fields
Browse files Browse the repository at this point in the history
  • Loading branch information
achim-k committed Nov 9, 2023
1 parent d631a7a commit 209f23e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions typescript/ws-protocol/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 209f23e

Please sign in to comment.