themainframe/php-binary

Validation of fields

themainframe opened this issue · 1 comments

  • Allow the specification of validation options for fields in the schema.
  • Throw exceptions during parsing for fields with validation failures.

Values should be backreferancable (I.e. with @some.schema.field) in the schema definition so that future fields can be validated against already-read ones.