@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@api-client/core",
3
3
  "description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
4
- "version": "0.20.4",
4
+ "version": "0.20.5",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
7
7
  "./browser.js": {
@@ -144,31 +144,16 @@ export type FunctionGeneratorConfig = StringDefaultRandomGenerator
144
144
  */
145
145
  export interface StringDefaultRandomGenerator {
146
146
  /**
147
- * When set the `max` and `min` are used.
148
- * Otherwise a random string of fixed length (the `fixed` property) is generated.
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
- varyingLength?: boolean
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
- * When not specified, it defaults to `10`.
169
- * The `varyingLength` must be `false` to use this property.
154
+ * The `isFixed` must be `true` to use this property.
170
155
  */
171
- fixed?: number
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.