Record Class DiscoveryResult
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.discovery.DiscoveryResult
- Record Components:
schemas- The discovered schemaswarnings- Non-fatal warnings emitted by discoveryskipped- Skipped inputs recorded whenskipOnError=truesourceMetadata- Sanitized source metadata returned by the provider
public record DiscoveryResult(List<DiscoveredSchema> schemas, List<DiscoveryWarning> warnings, List<DiscoverySkipped> skipped, Map<String,String> sourceMetadata)
extends Record
Result returned by a schema discovery provider.
- Since:
- 2.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryResult(List<DiscoveredSchema> schemas, List<DiscoveryWarning> warnings, List<DiscoverySkipped> skipped) Create an immutable discovery result without source metadata.DiscoveryResult(List<DiscoveredSchema> schemas, List<DiscoveryWarning> warnings, List<DiscoverySkipped> skipped, Map<String, String> sourceMetadata) Create an immutable discovery result. -
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.schemas()Returns the value of theschemasrecord component.skipped()Returns the value of theskippedrecord component.Returns the value of thesourceMetadatarecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
DiscoveryResult
public DiscoveryResult(List<DiscoveredSchema> schemas, List<DiscoveryWarning> warnings, List<DiscoverySkipped> skipped) Create an immutable discovery result without source metadata.- Parameters:
schemas- The discovered schemaswarnings- Non-fatal warnings emitted by discoveryskipped- Skipped inputs recorded whenskipOnError=true
-
DiscoveryResult
public DiscoveryResult(List<DiscoveredSchema> schemas, List<DiscoveryWarning> warnings, List<DiscoverySkipped> skipped, Map<String, String> sourceMetadata) Create an immutable discovery result.- Parameters:
schemas- The discovered schemaswarnings- Non-fatal warnings emitted by discoveryskipped- Skipped inputs recorded whenskipOnError=truesourceMetadata- Sanitized source metadata returned by the provider
-
-
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). -
schemas
-
warnings
-
skipped
-
sourceMetadata
Returns the value of thesourceMetadatarecord component.- Returns:
- the value of the
sourceMetadatarecord component
-