Class SchemaParser

java.lang.Object
express.mvp.myra.codec.schema.SchemaParser

public class SchemaParser extends Object
Parses .myra.yml schema files into SchemaDefinition instances.
  • Constructor Details

    • SchemaParser

      public SchemaParser()
  • Method Details

    • parse

      public SchemaDefinition parse(Path schemaPath) throws IOException
      Parse the schema file at the given path.
      Parameters:
      schemaPath - the path to the .myra.yml file
      Returns:
      the parsed schema definition
      Throws:
      IOException - if the file cannot be read or parsed