def __init__(self, ymlfile=None, clean=True):
        """Creates a new YAML validator for the given schema and yaml file

        The schema file should validate against JSON Schema Draft 4
        http://json-schema.org/latest/json-schema-core.html

        The YAML file should validate against the schema file given
        """
        self.loaded = False
        self.data = []
        self.doclines = []
        self._clean = clean

        self.ymlfile = ymlfile

        if ymlfile is not None:
            self.load()
def __init__ ( self , ymlfile = None , clean = True ) : self . loaded = False self . data = [ ] self . doclines = [ ] self . _clean = clean self . ymlfile = ymlfile if ymlfile is not None : self . load ( )
Creates a new YAML validator for the given schema and yaml file

        The schema file should validate against JSON Schema Draft 4
        http://json-schema.org/latest/json-schema-core.html

        The YAML file should validate against the schema file given