Record Class DiscoveredSchema
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.discovery.DiscoveredSchema
- Record Components:
scope- Provider-defined discovery scope used in diagnosticsname- Input object nameschemaJson- The discovered JSON Schema textretrievalMode- Retrieval mode used to obtain the schema
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredSchema(String scope, String name, String schemaJson, String retrievalMode) Creates an instance of aDiscoveredSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theretrievalModerecord component.Returns the value of theschemaJsonrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DiscoveredSchema
Creates an instance of aDiscoveredSchemarecord class.- Parameters:
scope- the value for thescoperecord componentname- the value for thenamerecord componentschemaJson- the value for theschemaJsonrecord componentretrievalMode- the value for theretrievalModerecord component
-
-
Method Details
-
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). -
scope
-
name
-
schemaJson
Returns the value of theschemaJsonrecord component.- Returns:
- the value of the
schemaJsonrecord component
-
retrievalMode
Returns the value of theretrievalModerecord component.- Returns:
- the value of the
retrievalModerecord component
-