Package io.micronaut.jsonschema.utils
Interface JsonSchemaClassPathResourceLoader
public interface JsonSchemaClassPathResourceLoader
API to retrieve a JSON Schema for a class.
- Since:
- 1.7.0
-
Method Summary
Modifier and TypeMethodDescriptionjsonSchemaStringForClass
(@NonNull Class<T> type) This method retrieves the JSON Schema for a class for which a JSON Schema was generated.
-
Method Details
-
jsonSchemaStringForClass
This method retrieves the JSON Schema for a class for which a JSON Schema was generated. Micronaut JSON Schema annotation processor generates a JSON Schema at compilation-time for classes annotated withJsonSchema
. The generated JSON Schema, by default, is saved to META/schemas.- Type Parameters:
T
- Type used to generate the JSON Schema- Parameters:
type
- the class for which a JSON Schema was generated at compilation-time.- Returns:
- A JSON Schema
-