class_docstr: Handles validation and swagger style inheritance for both subclasses.
  Subclass must define `schema` attribute.
  
  :param str name: The model public name
class_docstr_tok: ["Handles","validation","and","swagger","style","inheritance","for","both","subclasses",".","Subclass","must","define","`","schema","`","attribute",".",":","param","str","name",":","The","model","public","name"]
code: def format_error(self, error):
      path = list(error.path)
      if error.validator == "required":
          name = RE_REQUIRED.match(error.message).group("name")
          path.append(name)
      key = ".".join(str(p) for p in path)
      return key, error.message
  
imports: from __future__ import unicode_literals
  import copy
  import re
  import warnings
  from six import iteritems, itervalues
  from werkzeug.utils import cached_property
  from .mask import Mask
  from .errors import abort
  from jsonschema import Draft4Validator
  from jsonschema.exceptions import ValidationError
  from .utils import not_none
  from ._http import HTTPStatus
label_desc: Use image node_id 7 for calling the ModelBase obj's underlying member method code with example usage: obj.format_error(error) and returns: key,  error