Skip to content

Commit 720b331

Browse files
committed
Merge pull request #73 from fushar/fix-jsonSchema-typos
Fix typos in JsonSchema's methods
2 parents 0efe6dd + 5853254 commit 720b331

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,21 @@ public BooleanSchema asBooleanSchema() {
185185
return null;
186186
}
187187

188+
/**
189+
* @deprecated Since 2.7
190+
*/
191+
@Deprecated
192+
public ContainerTypeSchema asContainerSchema() {
193+
return asContainerTypeSchema();
194+
}
195+
188196
/**
189197
* Attempt to return this JsonSchema as a {@link ContainerTypeSchema}
190198
* @return this as an ContainerTypeSchema if possible, or null otherwise
199+
*
200+
* @since 2.7
191201
*/
192-
public ContainerTypeSchema asContainerSchema() {
202+
public ContainerTypeSchema asContainerTypeSchema() {
193203
return null;
194204
}
195205

@@ -249,11 +259,21 @@ public UnionTypeSchema asUnionTypeSchema() {
249259
return null;
250260
}
251261

262+
/**
263+
* @deprecated Since 2.7
264+
*/
265+
@Deprecated
266+
public ValueTypeSchema asValueSchemaSchema() {
267+
return asValueTypeSchema();
268+
}
269+
252270
/**
253271
* Attempt to return this JsonSchema as a {@link ValueTypeSchema}
254272
* @return this as a ValueTypeSchema if possible, or null otherwise
273+
*
274+
* @since 2.7
255275
*/
256-
public ValueTypeSchema asValueSchemaSchema() {
276+
public ValueTypeSchema asValueTypeSchema() {
257277
return null;
258278
}
259279

src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ContainerTypeSchema.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,20 @@ of enum values uses the same algorithm as defined in "uniqueItems"
3737
@JsonProperty(value = "oneOf", required = true)
3838
protected Set<Object> oneOf = Collections.emptySet();
3939

40+
/**
41+
* @deprecated Since 2.7
42+
*/
43+
@Deprecated
44+
@Override
45+
public ContainerTypeSchema asContainerSchema() {
46+
return asContainerTypeSchema();
47+
}
48+
49+
/**
50+
* @since 2.7
51+
*/
4052
@Override
41-
public ContainerTypeSchema asContainerSchema() { return this; }
53+
public ContainerTypeSchema asContainerTypeSchema() { return this; }
4254

4355
public Set<String> getEnums() {
4456
return enums;

src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ValueTypeSchema.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,20 @@ of enum values uses the same algorithm as defined in "uniqueItems"
3939
@JsonProperty
4040
protected JsonValueFormat format;
4141

42+
/**
43+
* @deprecated Since 2.7
44+
*/
45+
@Deprecated
46+
@Override
47+
public ValueTypeSchema asValueSchemaSchema() {
48+
return asValueTypeSchema();
49+
}
50+
51+
/**
52+
* @since 2.7
53+
*/
4254
@Override
43-
public ValueTypeSchema asValueSchemaSchema() { return this; }
55+
public ValueTypeSchema asValueTypeSchema() { return this; }
4456

4557
public Set<String> getEnums() {
4658
return enums;

0 commit comments

Comments
 (0)