Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (40 loc) · 2.24 KB

File metadata and controls

52 lines (40 loc) · 2.24 KB

ObjectInterface

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

Nested Class Summary

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

ObjectInterface1Boxed

public sealed interface ObjectInterface1Boxed
permits
ObjectInterface1BoxedMap

sealed interface that stores validated payloads using boxed classes

ObjectInterface1BoxedMap

public record ObjectInterface1BoxedMap
implements ObjectInterface1Boxed

record that stores validated Map payloads, sealed permits implementation

Constructor Summary

Constructor and Description
ObjectInterface1BoxedMap(FrozenMap<@Nullable Object> data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
FrozenMap<@Nullable Object> data()
validated payload
@Nullable Object getData()
validated payload

ObjectInterface1

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

[Back to top] [Back to Component Schemas] [Back to README]