Skip to content

Commit

Permalink
schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
babymotte committed Jul 16, 2024
1 parent 7db23a0 commit 77b21e1
Showing 1 changed file with 41 additions and 37 deletions.
78 changes: 41 additions & 37 deletions worterbuch-common/schema/client.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ properties:
required:
- transactionId
- parent
pls:
pLs:
description: A message sent by a client to list all direct sub-key segments of all partial keys matching the provided pattern
type: object
properties:
Expand All @@ -231,23 +231,23 @@ properties:
required:
- transactionId
- parentPattern
pSubscribeLs:
description: A message sent by a client to request a subscription to all direct sub-key segments of all partial keys matching the provided pattern
type: object
properties:
transactionId:
description: A unique transaction ID
type: integer
format: u64
parentPattern:
description: A pattern describing the parent partial keys for which to list sub-key segments
type:
- "null"
- string
additionalProperties: false
required:
- transactionId
- parentPattern
# pSubscribeLs:
# description: A message sent by a client to request a subscription to all direct sub-key segments of all partial keys matching the provided pattern
# type: object
# properties:
# transactionId:
# description: A unique transaction ID
# type: integer
# format: u64
# parentPattern:
# description: A pattern describing the parent partial keys for which to list sub-key segments
# type:
# - "null"
# - string
# additionalProperties: false
# required:
# - transactionId
# - parentPattern
unsubscribeLs:
description: A message sent by a client to request the cancellation of an ls subscription
type: object
Expand All @@ -259,23 +259,23 @@ properties:
additionalProperties: false
required:
- transactionId
transform:
description: A message sent by the client to set up a server-internal state transformer
type: object
properties:
transactionId:
description: A unique transaction ID
type: integer
format: u64
key:
description: The key under which the transformed state will be stored
type: string
template:
description: A JSON object describing the structure of the transformed state. The template contains placeholder keys that will be replaced with the actual value of those keys
type: object
additionalProperties: false
required:
- transactionId
# transform:
# description: A message sent by the client to set up a server-internal state transformer
# type: object
# properties:
# transactionId:
# description: A unique transaction ID
# type: integer
# format: u64
# key:
# description: The key under which the transformed state will be stored
# type: string
# template:
# description: A JSON object describing the structure of the transformed state. The template contains placeholder keys that will be replaced with the actual value of those keys
# type: object
# additionalProperties: false
# required:
# - transactionId
additionalProperties: false
oneOf:
- required:
Expand All @@ -300,12 +300,16 @@ oneOf:
- pDelete
- required:
- ls
- required:
- pLs
- required:
- subscribeLs
# - required:
# - pSubscribeLs
- required:
- unsubscribeLs
- required:
- transform
# - required:
# - transform
components:
schemas:
ProtocolVersion:
Expand Down

0 comments on commit 77b21e1

Please sign in to comment.