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.17 KB

File metadata and controls

52 lines (40 loc) · 2.17 KB

StringSchema

org.openapijsonschematools.client.components.schemas.StringSchema.java public class StringSchema

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 StringSchema.StringSchema1Boxed
sealed interface for validated payloads
record StringSchema.StringSchema1BoxedString
boxed class to store validated String payloads
static class StringSchema.StringSchema1
schema class

StringSchema1Boxed

public sealed interface StringSchema1Boxed
permits
StringSchema1BoxedString

sealed interface that stores validated payloads using boxed classes

StringSchema1BoxedString

public record StringSchema1BoxedString
implements StringSchema1Boxed

record that stores validated String payloads, sealed permits implementation

Constructor Summary

Constructor and Description
StringSchema1BoxedString(String data)
Creates an instance, private visibility

Method Summary

Modifier and Type Method and Description
String data()
validated payload
@Nullable Object getData()
validated payload

StringSchema1

public static class StringSchema1
extends StringJsonSchema.StringJsonSchema1

A schema class that validates payloads

Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema.StringJsonSchema1
validate
validateAndBox

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