Annotation Type JsonSchemaInject
-
@Target({METHOD,FIELD,PARAMETER,TYPE}) @Retention(RUNTIME) public @interface JsonSchemaInjectUse this annotation to inject JSON into the generated jsonSchema. When applied to a class, will be injected into the object type node. When applied to a property, will be injected into the property node.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description JsonSchemaBool[]boolsCollection of Boolean key/value pairs that will be injected.JsonSchemaInt[]intsCollection of Integer key/value pairs that will be injected.java.lang.Class<?>[]javaxValidationGroupsjava.lang.StringjsonJSON that will injected into the object or property node.java.lang.Class<? extends java.util.function.Supplier<com.fasterxml.jackson.databind.JsonNode>>jsonSupplierSupplier of a JsonNode that will be injected.java.lang.StringjsonSupplierViaLookupKey to entry inJsonSchemaConfig.jsonSupplierswhich will supply a JsonNode that will be injected.booleanoverrideAllIf overrideAll is false (the default), the injected json will be merged with the generated schema.JsonSchemaString[]stringsCollection of String key/value pairs that will be injected.
-
-
-
-
jsonSupplier
java.lang.Class<? extends java.util.function.Supplier<com.fasterxml.jackson.databind.JsonNode>> jsonSupplier
Supplier of a JsonNode that will be injected. Applied afterjson().- Default:
- com.kjetland.jackson.jsonSchema.annotations.JsonSchemaInject.None.class
-
-
-
jsonSupplierViaLookup
java.lang.String jsonSupplierViaLookup
Key to entry inJsonSchemaConfig.jsonSupplierswhich will supply a JsonNode that will be injected. Applied afterjsonSupplier().- Default:
- ""
-
-
-
strings
JsonSchemaString[] strings
Collection of String key/value pairs that will be injected. Applied afterjsonSupplierViaLookup().- Default:
- {}
-
-
-
ints
JsonSchemaInt[] ints
Collection of Integer key/value pairs that will be injected. Applied afterstrings().- Default:
- {}
-
-
-
bools
JsonSchemaBool[] bools
Collection of Boolean key/value pairs that will be injected. Applied afterints().- Default:
- {}
-
-