org.openapijsonschematools.client.components.schemas.ObjectInterface.java
public class ObjectInterface
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 | ObjectInterface.ObjectInterface1Boxed sealed interface for validated payloads |
record | ObjectInterface.ObjectInterface1BoxedMap boxed class to store validated Map payloads |
static class | ObjectInterface.ObjectInterface1 schema class |
public sealed interface ObjectInterface1Boxed
permits
ObjectInterface1BoxedMap
sealed interface that stores validated payloads using boxed classes
public record ObjectInterface1BoxedMap
implements ObjectInterface1Boxed
record that stores validated Map payloads, sealed permits implementation
Constructor and Description |
---|
ObjectInterface1BoxedMap(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 ObjectInterface1
extends MapJsonSchema.MapJsonSchema1
A schema class that validates payloads
Methods Inherited from class org.openapijsonschematools.client.schemas.MapJsonSchema.MapJsonSchema1 |
---|
validate |
validateAndBox |