@api-client/core 0.20.4 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/modeling/types.ts
CHANGED
|
@@ -144,31 +144,16 @@ export type FunctionGeneratorConfig = StringDefaultRandomGenerator
|
|
|
144
144
|
*/
|
|
145
145
|
export interface StringDefaultRandomGenerator {
|
|
146
146
|
/**
|
|
147
|
-
* When set the
|
|
148
|
-
* Otherwise a random
|
|
147
|
+
* When set to true, the random string will have a fixed length defined by the `length` property.
|
|
148
|
+
* Otherwise, the length will be a random number between the property's schema `minimum` and `maximum`.
|
|
149
149
|
*/
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The minimum length of the random string.
|
|
153
|
-
*
|
|
154
|
-
* When not specified, it defaults to `10`.
|
|
155
|
-
* The `varyingLength` must be `true` to use this property.
|
|
156
|
-
*/
|
|
157
|
-
min?: number
|
|
158
|
-
/**
|
|
159
|
-
* The maximum length of the random string.
|
|
160
|
-
*
|
|
161
|
-
* When not specified, it defaults to `30`.
|
|
162
|
-
* The `varyingLength` must be `true` to use this property.
|
|
163
|
-
*/
|
|
164
|
-
max?: number
|
|
150
|
+
isFixed?: boolean
|
|
165
151
|
/**
|
|
166
152
|
* The fixed length of the random string.
|
|
167
153
|
*
|
|
168
|
-
*
|
|
169
|
-
* The `varyingLength` must be `false` to use this property.
|
|
154
|
+
* The `isFixed` must be `true` to use this property.
|
|
170
155
|
*/
|
|
171
|
-
|
|
156
|
+
length?: number
|
|
172
157
|
/**
|
|
173
158
|
* The prefix to add to the random string.
|
|
174
159
|
* The prefix adds to the length of the random string.
|