You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 1 |`$schema`| Fixed to "http://json-schema.org/draft-07/schema#" – can be toggled on/off via `Option.SCHEMA_VERSION_INDICATOR`. |
152
152
| 2 |`definitions`| Filled with sub-schemas to support circular references – via `Option.DEFINITIONS_FOR_ALL_OBJECTS` it can be configured whether only sub-schemas appearing more than once are included or all. |
153
153
| 3 |`$ref`| Used with relative references to sub-schemas in `definitions`. |
154
-
| 4 |`type`| Differentiating between `boolean`/`string`/`integer`/`number` for primitive/known types. `null` is added if a property is deemed nullable according to configuration (`SchemaGeneratorConfigPart.withNullableCheck()`). Arrays and sub-types of `Collection<?>` are treated as `array`, everything else as `object`. A declared type may be interpreted as another type according to configuration (`SchemaGeneratorConfigPart.withTargetTypeOverrideResolver()`). |
154
+
| 4 |`type`| Differentiating between `boolean`/`string`/`integer`/`number` for primitive/known types. `null` is added if a property is deemed nullable according to configuration (`SchemaGeneratorConfigPart.withNullableCheck()`). Arrays and subtypes of `Collection<?>` are treated as `array`, everything else as `object`. A declared type may be interpreted as another type according to configuration (`SchemaGeneratorConfigPart.withTargetTypeOverrideResolver()`). |
155
155
| 5 |`properties`| Listing all detected fields and/or methods in an `object`. Which ones are being included can be steered by various `Option`s or via one of the provided `OptionPreset`s as well as by ignoring individual ones via configuration (`SchemaGeneratorConfigPart.withIgnoreCheck()`). Names can be altered via configuration (`SchemaGeneratorConfigPart.withPropertyNameOverrideResolver()`). |
156
156
| 6 |`items`| Indicating the type of `array`/`Collection` elements. |
157
157
| 7 |`required`| Listing the names of fields/methods that are deemed mandatory according to configuration (`SchemaGeneratorConfigPart.withRequiredCheck()`). |
158
158
| 8 |`allOf`| Used to combine general attributes derived from the type itself with attributes collected in the respective context of the associated field/method. |
159
-
| 9 |`oneOf`| Used to indicate when a particular field/method can be of `type``null`. |
160
-
| 10 |`title`| Collected value according to configuration (`SchemaGeneratorConfigPart.withTitleResolver()`). |
161
-
| 11 |`description`| Collected value according to configuration (`SchemaGeneratorConfigPart.withDescriptionResolver()`). |
162
-
| 12 |`const`| Collected value according to configuration (`SchemaGeneratorConfigPart.withEnumResolver()`) if only a single value was found. |
163
-
| 13 |`enum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withEnumResolver()`) if multiple values were found. |
164
-
| 14 |`default`| Collected value according to configuration (`SchemaGeneratorConfigPart.withDefaultResolver()`). |
165
-
| 15 |`additionalProperties`| Collected value according to configuration (`SchemaGeneratorConfigPart.withAdditionalPropertiesResolver()`). |
166
-
| 16 |`patternProperties`| Collected value(s) according to configuration (`SchemaGeneratorConfigPart.withPatternPropertiesResolver()`). |
167
-
| 17 |`minLength`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringMinLengthResolver()`). |
168
-
| 18 |`maxLength`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringMaxLengthResolver()`). |
169
-
| 19 |`format`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringFormatResolver()`). |
170
-
| 20 |`pattern`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringPatternResolver()`). |
171
-
| 21 |`minimum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberInclusiveMinimumResolver()`). |
172
-
| 22 |`exclusiveMinimum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberExclusiveMinimumResolver()`). |
173
-
| 23 |`maximum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberInclusiveMaximumResolver()`). |
174
-
| 24 |`exclusiveMaximum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberExclusiveMaximumResolver()`). |
175
-
| 25 |`multipleOf`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberMultipleOfResolver()`). |
176
-
| 26 |`minItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayMinItemsResolver()`). |
177
-
| 27 |`maxItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayMaxItemsResolver()`). |
178
-
| 28 |`uniqueItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayUniqueItemsResolver()`). |
179
-
| 29 | any other | You can directly manipulate the generated `ObjectNode` of a sub-schema – e.g. setting additional attributes – via configuration based on a given type in general (`SchemaGeneratorConfigBuilder.with(TypeAttributeOverride)`) and/or in the context of a particular field/method (`SchemaGeneratorConfigPart.withInstanceAttributeOverride()`). |
159
+
| 9 |`anyOf`| Used to list alternatives according to configuration (`SchemaGeneratorGeneralConfigPart.withSubtypeResolver()`). |
160
+
| 10 |`oneOf`| Used to indicate when a particular field/method can be of `type``null`. |
161
+
| 11 |`title`| Collected value according to configuration (`SchemaGeneratorConfigPart.withTitleResolver()`). |
162
+
| 12 |`description`| Collected value according to configuration (`SchemaGeneratorConfigPart.withDescriptionResolver()`). |
163
+
| 13 |`const`| Collected value according to configuration (`SchemaGeneratorConfigPart.withEnumResolver()`) if only a single value was found. |
164
+
| 14 |`enum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withEnumResolver()`) if multiple values were found. |
165
+
| 15 |`default`| Collected value according to configuration (`SchemaGeneratorConfigPart.withDefaultResolver()`). |
166
+
| 16 |`additionalProperties`| Collected value according to configuration (`SchemaGeneratorConfigPart.withAdditionalPropertiesResolver()`). |
167
+
| 17 |`patternProperties`| Collected value(s) according to configuration (`SchemaGeneratorConfigPart.withPatternPropertiesResolver()`). |
168
+
| 18 |`minLength`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringMinLengthResolver()`). |
169
+
| 19 |`maxLength`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringMaxLengthResolver()`). |
170
+
| 20 |`format`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringFormatResolver()`). |
171
+
| 21 |`pattern`| Collected value according to configuration (`SchemaGeneratorConfigPart.withStringPatternResolver()`). |
172
+
| 22 |`minimum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberInclusiveMinimumResolver()`). |
173
+
| 23 |`exclusiveMinimum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberExclusiveMinimumResolver()`). |
174
+
| 24 |`maximum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberInclusiveMaximumResolver()`). |
175
+
| 25 |`exclusiveMaximum`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberExclusiveMaximumResolver()`). |
176
+
| 26 |`multipleOf`| Collected value according to configuration (`SchemaGeneratorConfigPart.withNumberMultipleOfResolver()`). |
177
+
| 27 |`minItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayMinItemsResolver()`). |
178
+
| 28 |`maxItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayMaxItemsResolver()`). |
179
+
| 29 |`uniqueItems`| Collected value according to configuration (`SchemaGeneratorConfigPart.withArrayUniqueItemsResolver()`). |
180
+
| 30 | any other | You can directly manipulate the generated `ObjectNode` of a sub-schema – e.g. setting additional attributes – via configuration based on a given type in general (`SchemaGeneratorConfigBuilder.with(TypeAttributeOverride)`) and/or in the context of a particular field/method (`SchemaGeneratorConfigPart.withInstanceAttributeOverride()`). |
0 commit comments