Skip to content

Commit cd07e6e

Browse files
committed
definition of create-users
1 parent 6ff2991 commit cd07e6e

1 file changed

Lines changed: 37 additions & 3 deletions

File tree

src/main/resources/wfc/schemas/auth.yaml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,46 @@ $defs:
113113
generators:
114114
description: "List of generators for unique/random names to use in payload template resolution."
115115
type: array
116+
minLength: 1
116117
items:
117-
@ref
118-
TODO
118+
$ref: "#/$defs/Generator"
119119
x-required:
120-
allOf: ["verb","contentType","payloadRaw"]
120+
allOf: ["verb","contentType","payloadRaw","generators"]
121121
oneOf: ["endpoint","externalEndpointURL"]
122+
123+
Generator:
124+
description: "Parametric producer of unique string values. \
125+
This is needed for example when creating user-names dynamically in the authentication configurations."
126+
type: object
127+
properties:
128+
placeHolder:
129+
description: "Placeholder tag used to represent a value generated with this generator. \
130+
String interpolation will be applied to the raw payloads to replace any found instance of \
131+
this placeholder with the generated value."
132+
type: string
133+
examples:
134+
- "{$username}"
135+
- "{$email}"
136+
minLength:
137+
description: "Minimum length of the generated string"
138+
type: number
139+
min: 0
140+
maxLength:
141+
description: "Maximum length of the generated string"
142+
type: number
143+
min: 0
144+
prefix:
145+
description: "Fixed prefix shared by all generated strings"
146+
type: string
147+
examples:
148+
- "user_"
149+
postfix:
150+
description: "Fixed postfix shared by all generated strings"
151+
type: string
152+
examples:
153+
- "@example.com"
154+
x-required: ["placeHolder"]
155+
122156
LoginEndpoint:
123157
description: "Used to represent the case in which a login endpoint is used to obtain the authentication credentials. \
124158
These can be cookies, or a token extracted from the login endpoint's response. \

0 commit comments

Comments
 (0)