Skip to content

Commit

Permalink
remove check in map schema
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 committed Apr 28, 2020
1 parent 2ea7720 commit e016c41
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,11 @@ public static boolean isComposedSchema(Schema schema) {
* @return true if the specified schema is a Map schema.
*/
public static boolean isMapSchema(Schema schema) {
// make sure it's not free form object first
if (isFreeFormObject(schema)) {
// to cover `additionalProperties: {}`
return false;
}
// // make sure it's not free form object first
// if (isFreeFormObject(schema)) {
// // to cover `additionalProperties: {}`
// return false;
// }

if (schema instanceof MapSchema) {
return true;
Expand Down

0 comments on commit e016c41

Please sign in to comment.