Record Class OpenApiSchema
java.lang.Object
java.lang.Record
dev.rafex.ether.http.openapi.model.OpenApiSchema
-
Constructor Summary
ConstructorsConstructorDescriptionOpenApiSchema(String type, String format, String description, boolean nullable, Object example, String ref, Map<String, OpenApiSchema> properties, List<String> required, OpenApiSchema items) Creates an instance of aOpenApiSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.example()Returns the value of theexamplerecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.static OpenApiSchemaitems()Returns the value of theitemsrecord component.booleannullable()Returns the value of thenullablerecord component.Returns the value of thepropertiesrecord component.ref()Returns the value of therefrecord component.required()Returns the value of therequiredrecord component.static OpenApiSchemafinal StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
OpenApiSchema
public OpenApiSchema(String type, String format, String description, boolean nullable, Object example, String ref, Map<String, OpenApiSchema> properties, List<String> required, OpenApiSchema items) Creates an instance of aOpenApiSchemarecord class.- Parameters:
type- the value for thetyperecord componentformat- the value for theformatrecord componentdescription- the value for thedescriptionrecord componentnullable- the value for thenullablerecord componentexample- the value for theexamplerecord componentref- the value for therefrecord componentproperties- the value for thepropertiesrecord componentrequired- the value for therequiredrecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
stringSchema
-
integerSchema
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
nullable
public boolean nullable()Returns the value of thenullablerecord component.- Returns:
- the value of the
nullablerecord component
-
example
Returns the value of theexamplerecord component.- Returns:
- the value of the
examplerecord component
-
ref
Returns the value of therefrecord component.- Returns:
- the value of the
refrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
required
Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-