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 @@ -640,13 +640,8 @@ else if ("body".equals(value)) {
bp.setPattern(pat);
}

// allowEmptyValue
Boolean bl = getBoolean("allowEmptyValue", obj, false, location, result);
if(bl != null) {
bp.setAllowEmptyValue(bl);
}
// readOnly
bl = getBoolean("readOnly", obj, false, location, result);
Boolean bl = getBoolean("readOnly", obj, false, location, result);
if(bl != null) {
bp.setReadOnly(bl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ public void testIssue360() {
assertTrue(stringBodyParameter instanceof BodyParameter);
BodyParameter sbp = (BodyParameter) stringBodyParameter;
assertTrue(sbp.getRequired());
assertTrue(sbp.getAllowEmptyValue());
assertEquals(sbp.getName(), "simple");

Model sbpModel = sbp.getSchema();
Expand All @@ -573,7 +572,6 @@ public void testIssue360() {
assertTrue(refBodyParameter instanceof BodyParameter);
BodyParameter ref = (BodyParameter) refBodyParameter;
assertTrue(ref.getRequired());
assertTrue(ref.getAllowEmptyValue());
assertEquals(ref.getName(), "simple");

Model refModel = ref.getSchema();
Expand Down
2 changes: 0 additions & 2 deletions modules/swagger-parser/src/test/resources/issue_360.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ paths:
- name: simple
in: body
required: true
allowEmptyValue: true
schema:
type: string
format: uuid
Expand All @@ -37,7 +36,6 @@ paths:
- name: simple
in: body
required: true
allowEmptyValue: true
schema:
$ref: '#/definitions/Pet'
definitions:
Expand Down