Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,20 @@ of enum values uses the same algorithm as defined in "uniqueItems"
@JsonProperty(value = "oneOf", required = true)
protected Set<Object> 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<String> getEnums() {
return enums;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> getEnums() {
return enums;
Expand Down