Skip to content

Example BGP custom data validator not working #113

Description

@Glynn608

Environment

  • Python version:
$ python3 --version
Python 3.9.6
  • schema-enforcer version:
jsonschema==3.2.0
schema-enforcer==1.1.0

Expected Behavior

The schema should load and validate data against the validate function with exits of self.add_validation_error() and self.add_validation_pass()

Observed Behavior

The schema appears to be registering but doesn't action anything in the script.

Steps to Reproduce

  1. Install the dependancies
  2. Follow this guide - https://blog.networktocode.com/post/schema-enforcer-custom-validators/
  3. https://github.com/networktocode/schema-enforcer/blob/develop/docs/custom_validators.md

Side note, the example4 folder doesn't seems to exist like in the blog post, does anyone have a working example of custom validators using https://github.com/networktocode/schema-enforcer/blob/develop/docs/custom_validators.md#basevalidation?

Maybe I'm missing something in the .toml file? Any examples?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions