Add strong_typing, add defaults

This commit is contained in:
Ashwin Bharambe 2024-09-23 10:55:43 -07:00
parent 98da002b4c
commit 2f6ce08315
24 changed files with 5170 additions and 109 deletions

View file

@ -18,16 +18,16 @@ import yaml
from llama_models import schema_utils
from .pyopenapi.options import Options
from .pyopenapi.specification import Info, Server
from .pyopenapi.utility import Specification
# We do some monkey-patching to ensure our definitions only use the minimal
# (json_schema_type, webmethod) definitions from the llama_models package. For
# generation though, we need the full definitions and implementations from the
# (json-strong-typing) package.
from strong_typing.schema import json_schema_type
from .pyopenapi.options import Options
from .pyopenapi.specification import Info, Server
from .pyopenapi.utility import Specification
from .strong_typing.schema import json_schema_type
schema_utils.json_schema_type = json_schema_type