Extract YAML file parsing as a public method in YamlChangeLogParser and YamlSnapshotParser
Description
As of Liquibase 3.5.3 the code to parse YAML and JSON files is embedded within YamlChangeLogParser.parse(..) and YamlSnapshotParser.parse(..) methods. The parsing section in these methods should be extracted a separate public method, perhaps in the YamlParser class, so that other parsers, e.g. https://github.com/kumarshantanu/liquibase-edn can reuse the rest of the code by overriding the file-parsing methods, without duplicating rest of the YAML parser's logic.
As of Liquibase 3.5.3 the code to parse YAML and JSON files is embedded within
YamlChangeLogParser.parse(..)
andYamlSnapshotParser.parse(..)
methods. The parsing section in these methods should be extracted a separate public method, perhaps in theYamlParser
class, so that other parsers, e.g. https://github.com/kumarshantanu/liquibase-edn can reuse the rest of the code by overriding the file-parsing methods, without duplicating rest of the YAML parser's logic.