Skip to content

Commit c2ed95d

Browse files
committed
Add support for multiple syntaxes
1 parent d0869e0 commit c2ed95d

File tree

4 files changed

+296
-287
lines changed

4 files changed

+296
-287
lines changed

schemas/function.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ type: object
55

66
properties:
77
shared:
8-
description: |
9-
A shared specification of a function.
10-
You must always create a server and a client property, and merge this into both
11-
using a reference.
8+
description: A shared specification of a function.
129
$ref: '#/$defs/common_properties'
1310
server:
1411
description: A server-side specification of a function.
@@ -20,6 +17,18 @@ properties:
2017
$defs:
2118
common_properties:
2219
type: object
20+
syntaxes:
21+
type: array
22+
description: Additional syntaxes for function.
23+
items:
24+
allOf:
25+
- $ref: '#/$defs/common_properties'
26+
- type: object
27+
properties:
28+
displayParams:
29+
type: boolean
30+
description: Specifies whether to display the parameters and returns sections.
31+
default: true
2332
required:
2433
- name
2534
properties:
@@ -119,6 +128,7 @@ $defs:
119128
description:
120129
type: string
121130
description: Describe the usage, contraints and other useful information about the parameter.
131+
default: ""
122132
default:
123133
type: string
124134
description: |
@@ -145,6 +155,7 @@ $defs:
145155
description:
146156
type: string
147157
description: A summary for the return values.
158+
default: ""
148159
values:
149160
type: array
150161
description: A list of named values returned by the function.

0 commit comments

Comments
 (0)