Skip to content

Commit

Permalink
#484 fix additionalProperties behavior : only Schema.False and Schema…
Browse files Browse the repository at this point in the history
….True should be taken into account
  • Loading branch information
dcdh committed Oct 12, 2024
1 parent d8450d4 commit 6c385a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ protected Type mapAdditionalPropertiesEnumValue(Schema annotation) {
// block any additional properties
return Void.class;
} else {
return annotation.additionalProperties();
// fall-back on other configuration, e.g., as per Option.FORBIDDEN_ADDITIONAL_PROPERTIES_BY_DEFAULT
return null;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
}
},
"title": "reference title",
"description": "the foo's person",
"additionalProperties": false
"description": "the foo's person"
}
},
"type": "object",
Expand Down

0 comments on commit 6c385a2

Please sign in to comment.