org.openapijsonschematools.client.components.schemas.ParentPet.java
public class ParentPet
A class that contains necessary nested
- schema classes (which validate payloads), extends JsonSchema
- sealed interfaces which store validated payloads, java version of a sum type
- boxed classes which store validated payloads, sealed permits class implementations
Modifier and Type | Class and Description |
---|---|
sealed interface | ParentPet.ParentPet1Boxed sealed interface for validated payloads |
record | ParentPet.ParentPet1BoxedMap boxed class to store validated Map payloads |
static class | ParentPet.ParentPet1 schema class |
public sealed interface ParentPet1Boxed
permits
ParentPet1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record ParentPet1BoxedMap
implements ParentPet1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
ParentPet1BoxedMap(FrozenMap<@Nullable Object> data) Creates an instance, private visibility |
Modifier and Type | Method and Description |
---|---|
FrozenMap<@Nullable Object> | data() validated payload |
@Nullable Object | getData() validated payload |
public static class ParentPet1
extends JsonSchema
A schema class that validates payloads
Modifier and Type | Field and Description |
---|---|
Set<Class<?>> | type = Set.of(Map.class) |
List<Class<? extends JsonSchema>> | allOf = List.of( GrandparentAnimal.GrandparentAnimal1.class ;) |
Modifier and Type | Method and Description |
---|---|
FrozenMap<String, @Nullable Object> | validate(Map<?, ?> arg, SchemaConfiguration configuration) |
ParentPet1BoxedMap | validateAndBox(Map<?, ?> arg, SchemaConfiguration configuration) |
ParentPet1Boxed | validateAndBox(@Nullable Object arg, SchemaConfiguration configuration) |
@Nullable Object | validate(@Nullable Object arg, SchemaConfiguration configuration) |