Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Revert "remove check in map schema"
This reverts commit e016c41.
  • Loading branch information
wing328 committed Apr 28, 2020
commit c72d9ee3850bdd830fa0f15cec45a9f5443d1be4
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