aria.parser.validation

Validation package.

class aria.parser.validation.ValidationContext

Bases: object

Validation context.

Variables:
  • allow_unknown_fields (bool) – when False (the default) will report an issue if an unknown field is used
  • allow_primitive_coersion` – when False (the default) will not attempt to coerce primitive field types
  • max_level (int) – maximum validation level to report (default is all)
dump_issues()
has_issues
issues
issues_as_raw
report(message=None, exception=None, location=None, line=None, column=None, locator=None, snippet=None, level=0, issue=None)
class aria.parser.validation.Issue(message=None, exception=None, location=None, line=None, column=None, locator=None, snippet=None, level=0)

Bases: object

ALL = 100
BETWEEN_FIELDS = 3
BETWEEN_INSTANCES = 5
BETWEEN_TYPES = 4
EXTERNAL = 6
FIELD = 2
PLATFORM = 0
SYNTAX = 1
as_raw
details_as_str
heading_as_str
locator_as_str