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:
@@ -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
|
||||
|
Reference in New Issue
Block a user