@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface JsonSerializableSchema
Note that annotation is often not needed: for example, regular Jackson beans that Jackson can introspect can be used without annotations, to produce JSON schema definition.
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
NO_VALUE
Marker value used to indicate that property has "no value";
needed because annotations cannot have null as default
value.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
id
Property that can be used to indicate id of the type when
generating JSON Schema; empty String indicates that no id
is defined.
|
java.lang.String |
schemaItemDefinition
Deprecated.
(since 2.1) -- support will be dropped in future, since JSON-as-String is
fundamentally bad way for customizing anything. No direct replacements offered.
|
java.lang.String |
schemaObjectPropertiesDefinition
Deprecated.
(since 2.1) -- support will be dropped in future, since JSON-as-String is
fundamentally bad way for customizing anything. No direct replacements offered.
|
java.lang.String |
schemaType
The schema type for this JsonSerializable instance.
|
public static final java.lang.String NO_VALUE
public abstract java.lang.String id
public abstract java.lang.String schemaType
@Deprecated public abstract java.lang.String schemaObjectPropertiesDefinition
@Deprecated public abstract java.lang.String schemaItemDefinition
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"