src/utils/miscUtilities.js
// returns if it can have inheritance. only objects can have inheritance
returns if it can have inheritance. only objects can have inheritance
returns if it can have inheritance . only objects can have inheritance
function canInherit(JSONFile, definitionName) {
  if (
    JSONFile[definitionName]["allOf"] ||
    JSONFile[definitionName]["type"] == "object"
  ) {
    return true;
  } else {
    return false;
  }
}
function canInherit ( JSONFile , definitionName ) { if ( JSONFile [ definitionName ] [ "allOf" ] || JSONFile [ definitionName ] [ "type" ] == "object" ) { return true ; } else { return false ; } }
returns if it can have inheritance.
returns if it can have inheritance .