code: def extend_with_default(self, validator_class):
          '''
          Method to add default fields to our schema validation
          ( From the docs )
          '''
          validate_properties = validator_class.VALIDATORS["properties"]
  
          def set_defaults(validator, properties, instance, schema):
              for error in validate_properties(
                  validator, properties, instance, schema,
              ):
                  yield error
  
              for property, subschema in list(properties.items()):
                  if "default" in subschema:
                      instance.setdefault(property, subschema["default"])
  
          return validators.extend(
              validator_class, {"properties": set_defaults},
          f extend_with_default(self, validator_class):
          '''
          Method to add default fields to our schema validation
          ( From the docs )
          '''
          validate_properties = validator_class.VALIDATORS["properties"]
  
          def set_defaults(validator, properties, instance, schema):
              for error in validate_properties(
                  validator, properties, instance, schema,
              ):
                  yield error
  
              for property, subschema in list(properties.items()):
                  if "default" in subschema:
                      instance.setdefault(property, subschema["default"])
  
          return validators.extend(
              validator_class, {"properties": set_defaults},
          )
docs: Method to add default fields to our schema validation
          ( From the docs )