diff --git a/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java b/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java index 210aea5c..877db27f 100644 --- a/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java +++ b/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java @@ -185,11 +185,21 @@ public BooleanSchema asBooleanSchema() { return null; } + /** + * @deprecated Since 2.7 + */ + @Deprecated + public ContainerTypeSchema asContainerSchema() { + return asContainerTypeSchema(); + } + /** * Attempt to return this JsonSchema as a {@link ContainerTypeSchema} * @return this as an ContainerTypeSchema if possible, or null otherwise + * + * @since 2.7 */ - public ContainerTypeSchema asContainerSchema() { + public ContainerTypeSchema asContainerTypeSchema() { return null; } @@ -249,11 +259,21 @@ public UnionTypeSchema asUnionTypeSchema() { return null; } + /** + * @deprecated Since 2.7 + */ + @Deprecated + public ValueTypeSchema asValueSchemaSchema() { + return asValueTypeSchema(); + } + /** * Attempt to return this JsonSchema as a {@link ValueTypeSchema} * @return this as a ValueTypeSchema if possible, or null otherwise + * + * @since 2.7 */ - public ValueTypeSchema asValueSchemaSchema() { + public ValueTypeSchema asValueTypeSchema() { return null; } diff --git a/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ContainerTypeSchema.java b/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ContainerTypeSchema.java index 9026628c..51dfb2a8 100644 --- a/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ContainerTypeSchema.java +++ b/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ContainerTypeSchema.java @@ -37,8 +37,20 @@ of enum values uses the same algorithm as defined in "uniqueItems" @JsonProperty(value = "oneOf", required = true) protected Set oneOf = Collections.emptySet(); + /** + * @deprecated Since 2.7 + */ + @Deprecated + @Override + public ContainerTypeSchema asContainerSchema() { + return asContainerTypeSchema(); + } + + /** + * @since 2.7 + */ @Override - public ContainerTypeSchema asContainerSchema() { return this; } + public ContainerTypeSchema asContainerTypeSchema() { return this; } public Set getEnums() { return enums; diff --git a/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ValueTypeSchema.java b/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ValueTypeSchema.java index 5a13e33a..55dfe6b3 100644 --- a/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ValueTypeSchema.java +++ b/src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ValueTypeSchema.java @@ -39,8 +39,20 @@ of enum values uses the same algorithm as defined in "uniqueItems" @JsonProperty protected JsonValueFormat format; + /** + * @deprecated Since 2.7 + */ + @Deprecated + @Override + public ValueTypeSchema asValueSchemaSchema() { + return asValueTypeSchema(); + } + + /** + * @since 2.7 + */ @Override - public ValueTypeSchema asValueSchemaSchema() { return this; } + public ValueTypeSchema asValueTypeSchema() { return this; } public Set getEnums() { return enums;