Skip to content

Commit 21d8cb8

Browse files
authored
Merge pull request #112 from cambridgeweblab/feature/ldo-schema-property
Update LinkDescriptionObject to remove redundant 'jsonSchema' property
2 parents 6c56c0d + 2aec0ec commit 21d8cb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.fasterxml.jackson.module.jsonSchema.types;
22

3+
import com.fasterxml.jackson.annotation.JsonIgnore;
34
import com.fasterxml.jackson.annotation.JsonInclude;
45
import com.fasterxml.jackson.annotation.JsonInclude.Include;
56
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -203,7 +204,7 @@ structure of the submitted request (for a GET request, this jsonSchema
203204
would define the properties for the query string and for a POST
204205
request, this would define the body).
205206
*/
206-
@JsonProperty
207+
@JsonIgnore
207208
private JsonSchema jsonSchema;
208209

209210
/**
@@ -266,6 +267,7 @@ public LinkDescriptionObject setTargetSchema(JsonSchema targetSchema) {
266267
return this;
267268
}
268269

270+
@JsonProperty
269271
public JsonSchema getSchema() {
270272
return jsonSchema;
271273
}

0 commit comments

Comments
 (0)