|
| 1 | +# UnevaluatedpropertiesNotAffectedByPropertynames |
| 2 | +org.openapijsonschematools.client.components.schemas.UnevaluatedpropertiesNotAffectedByPropertynames.java |
| 3 | +public class UnevaluatedpropertiesNotAffectedByPropertynames |
| 4 | + |
| 5 | +A class that contains necessary nested |
| 6 | +- schema classes (which validate payloads), extends JsonSchema |
| 7 | + |
| 8 | +## Nested Class Summary |
| 9 | +| Modifier and Type | Class and Description | |
| 10 | +| ----------------- | ---------------------- | |
| 11 | +| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedpropertiesNotAffectedByPropertynames1](#unevaluatedpropertiesnotaffectedbypropertynames1)<br> schema class | |
| 12 | +| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.UnevaluatedProperties](#unevaluatedproperties)<br> schema class | |
| 13 | +| static class | [UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNames](#propertynames)<br> schema class | |
| 14 | + |
| 15 | +## UnevaluatedpropertiesNotAffectedByPropertynames1 |
| 16 | +public static class UnevaluatedpropertiesNotAffectedByPropertynames1<br> |
| 17 | +extends JsonSchema |
| 18 | + |
| 19 | +A schema class that validates payloads |
| 20 | + |
| 21 | +### Field Summary |
| 22 | +| Modifier and Type | Field and Description | |
| 23 | +| ----------------- | ---------------------- | |
| 24 | +| Class<? extends JsonSchema> | propertyNames = [PropertyNames.class](#propertynames) | |
| 25 | +| Class<? extends JsonSchema> | unevaluatedProperties = [UnevaluatedProperties.class](#unevaluatedproperties) | |
| 26 | + |
| 27 | +### Method Summary |
| 28 | +| Modifier and Type | Method and Description | |
| 29 | +| ----------------- | ---------------------- | |
| 30 | +| String | validate(String arg, SchemaConfiguration configuration) | |
| 31 | +| Void | validate(Void arg, SchemaConfiguration configuration) | |
| 32 | +| int | validate(int arg, SchemaConfiguration configuration) | |
| 33 | +| long | validate(long arg, SchemaConfiguration configuration) | |
| 34 | +| float | validate(float arg, SchemaConfiguration configuration) | |
| 35 | +| double | validate(double arg, SchemaConfiguration configuration) | |
| 36 | +| boolean | validate(boolean arg, SchemaConfiguration configuration) | |
| 37 | +| FrozenMap<String, @Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) | |
| 38 | +| FrozenList<@Nullable Object> | validate(List<?> arg, SchemaConfiguration configuration) | |
| 39 | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | |
| 40 | +## UnevaluatedProperties |
| 41 | +public static class UnevaluatedProperties<br> |
| 42 | +extends NumberJsonSchema |
| 43 | + |
| 44 | +A schema class that validates payloads |
| 45 | + |
| 46 | +| Methods Inherited from class org.openapijsonschematools.client.schemas.NumberJsonSchema | |
| 47 | +| ------------------------------------------------------------------ | |
| 48 | +| validate | |
| 49 | + |
| 50 | +## PropertyNames |
| 51 | +public static class PropertyNames<br> |
| 52 | +extends JsonSchema |
| 53 | + |
| 54 | +A schema class that validates payloads |
| 55 | + |
| 56 | +### Code Sample |
| 57 | +``` |
| 58 | +import org.openapijsonschematools.client.configurations.JsonSchemaKeywordFlags; |
| 59 | +import org.openapijsonschematools.client.configurations.SchemaConfiguration; |
| 60 | +import org.openapijsonschematools.client.exceptions.ValidationException; |
| 61 | +import org.openapijsonschematools.client.schemas.validation.MapUtils; |
| 62 | +import org.openapijsonschematools.client.schemas.validation.FrozenList; |
| 63 | +import org.openapijsonschematools.client.schemas.validation.FrozenMap; |
| 64 | +
|
| 65 | +import java.util.Arrays; |
| 66 | +import java.util.List; |
| 67 | +import java.util.AbstractMap; |
| 68 | +
|
| 69 | +static final SchemaConfiguration configuration = new SchemaConfiguration(JsonSchemaKeywordFlags.ofNone()); |
| 70 | +
|
| 71 | +// String validation |
| 72 | +String validatedPayload = UnevaluatedpropertiesNotAffectedByPropertynames.PropertyNames.validate( |
| 73 | + "a", |
| 74 | + configuration |
| 75 | +); |
| 76 | +``` |
| 77 | + |
| 78 | +### Field Summary |
| 79 | +| Modifier and Type | Field and Description | |
| 80 | +| ----------------- | ---------------------- | |
| 81 | +| Set<Class<?>> | type = Set.of(<br/> String.class<br/>)<br/> | |
| 82 | +| Integer | maxLength = 1 | |
| 83 | + |
| 84 | +### Method Summary |
| 85 | +| Modifier and Type | Method and Description | |
| 86 | +| ----------------- | ---------------------- | |
| 87 | +| String | validate(String arg, SchemaConfiguration configuration) | |
| 88 | +| @Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) | |
| 89 | +[[Back to top]](#top) [[Back to Component Schemas]](../../../README.md#Component-Schemas) [[Back to README]](../../../README.md) |
0 commit comments