Package org.forgerock.api.annotations
Annotation Interface Schema
Specify a schema for the element that is being described.
This annotation can also be used to specify an id
for a schema defined by a type.
-
Optional Element Summary
-
Element Details
-
id
String idThe schema identifier. If provided, this schema will be added to definitions and referenced from anywhere it is used. If null/empty, the schema will be used inline.- Default:
- ""
-
fromType
Class<?> fromTypeThe type to produce the schema from.- Default:
- java.lang.Void.class
-
schemaResource
String schemaResourceA classpath resource that contains a JSON Schema structure to be used. The path is relative to the type that the annotated resource method is part of, and will be resolved using theClass.getResourceAsStream(String)
method on that class instance.- Default:
- ""
-