forked from mirrors/thatmattlove-hyperglass
move validation to query model
This commit is contained in:
parent
b68a75273b
commit
35cc251474
4 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
10
hyperglass/models/__init__.py
Normal file
10
hyperglass/models/__init__.py
Normal 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
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
"""Input validation functions for submitted queries."""
|
||||
|
||||
# Standard Library Imports
|
||||
import operator
|
||||
import re
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue