def check_layout_json(self) -> None:
    'Check all layout.json files for valid schema.'
    if ((not self.lj.has_layout) or ('layout.json' in self.invalid_json_files)):
        return
    status = True
    try:
        self.lj.model
    except ValidationError as ex:
        self.invalid_json_files.append(self.ij.fqfn.name)
        status = False
        for error in json.loads(ex.json()):
            location = [str(location) for location in error.get('loc')]
            self.validation_data['errors'].append(f"Schema validation failed for layout.json. {error.get('msg')}: {' -> '.join(location)}")
    except ValueError:
        return
    self.validation_data['schema'].append({'filename': self.lj.fqfn.name, 'status': status})
    if (status is True):
        self.check_layout_params()
Check all layout.json files for valid schema.
def check_layout_json(self) -> None:
    
    if ((not self.lj.has_layout) or ('layout.json' in self.invalid_json_files)):
        return
    status = True
    try:
        self.lj.model
    except ValidationError as ex:
        self.invalid_json_files.append(self.ij.fqfn.name)
        status = False
        for error in json.loads(ex.json()):
            location = [str(location) for location in error.get('loc')]
            self.validation_data['errors'].append(f"Schema validation failed for layout.json. {error.get('msg')}: {' -> '.join(location)}")
    except ValueError:
        return
    self.validation_data['schema'].append({'filename': self.lj.fqfn.name, 'status': status})
    if (status is True):
        self.check_layout_params()