1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

move validation to query model

This commit is contained in:
checktheroads
2020-02-01 00:47:58 -10:00
parent b68a75273b
commit 35cc251474
4 changed files with 13 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ https://github.com/checktheroads/hyperglass
The Clear BSD License
Copyright (c) 2019 Matthew Love
Copyright (c) 2020 Matthew Love
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@@ -8,4 +8,3 @@ input, executes the commands/calls, returns the output to front end.
# flake8: noqa: F401
from hyperglass.execution import construct
from hyperglass.execution import execute
from hyperglass.execution import validate

View File

@@ -0,0 +1,10 @@
"""Query & Response Validation Models."""
# Project Imports
# flake8: noqa: F401
from hyperglass.models import query
from hyperglass.models import response
from hyperglass.models import rfc8522
from hyperglass.models import types
from hyperglass.models import validators

View File

@@ -1,3 +1,5 @@
"""Input validation functions for submitted queries."""
# Standard Library Imports
import operator
import re