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

model restructure, front-end improvements

This commit is contained in:
checktheroads
2019-10-09 03:10:52 -07:00
parent 7a77ff6e50
commit 962fd21bf9
45 changed files with 1325 additions and 979 deletions

View File

@@ -2,7 +2,10 @@
Utility Functions for Pydantic Models
"""
# Standard Library Imports
import re
# Third Party Imports
from pydantic import BaseSettings
@@ -28,3 +31,15 @@ class HyperglassModel(BaseSettings):
validate_all = True
extra = "forbid"
validate_assignment = True
alias_generator = clean_name
class HyperglassModelExtra(HyperglassModel):
"""Model for hyperglass configuration models with dynamic fields"""
pass
class Config:
"""Default pydantic configuration"""
extra = "allow"