Record Class OpenAPIDocument
java.lang.Object
java.lang.Record
org.infinispan.rest.framework.openapi.OpenAPIDocument
- Record Components:
openapi- : A required field with the SemVer of the OpenAPI specification.info- : A required field that contains metadata about the API.paths- : A required property with the paths and operation available in the API.
- All Implemented Interfaces:
JsonSerialization
public record OpenAPIDocument(String openapi, Info info, Paths paths, Components components, Collection<ResourceDescription> resources)
extends Record
implements JsonSerialization
This is the root document object of the OpenAPI document.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOpenAPIDocument(String openapi, Info info, Paths paths, Components components, Collection<ResourceDescription> resources) Creates an instance of aOpenAPIDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.openapi()Returns the value of theopenapirecord component.paths()Returns the value of thepathsrecord component.Returns the value of theresourcesrecord component.toJson()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OpenAPIDocument
public OpenAPIDocument(String openapi, Info info, Paths paths, Components components, Collection<ResourceDescription> resources) Creates an instance of aOpenAPIDocumentrecord class.
-
-
Method Details
-
toJson
- Specified by:
toJsonin interfaceJsonSerialization
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
openapi
-
info
-
paths
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
resources
Returns the value of theresourcesrecord component.- Returns:
- the value of the
resourcesrecord component
-