Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any, Dict, List

import openapi_schema_pydantic as oas
import openapi_pydantic as oas
from pydantic import Field, BaseModel


Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Dict, List, Tuple, Union, Optional

import httpx
from openapi_schema_pydantic import OpenAPI
from openapi_pydantic import OpenAPI

# parser context
_override_config: ContextVar[Tuple["Overridable", ...]] = ContextVar("override_config")
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/endpoints/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .parameter import build_param
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/endpoints/parameter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Union, Literal

import openapi_pydantic as oas
from pydantic import parse_obj_as
import openapi_schema_pydantic as oas

from ...source import Source
from ..utils import build_prop_name, concat_snake_name
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/endpoints/request_body.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Set, List, Union, Literal

import openapi_schema_pydantic as oas
import openapi_pydantic as oas
from pydantic import BaseModel, parse_obj_as

from ...source import Source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/endpoints/response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Set, Union, Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas
from pydantic import BaseModel, parse_obj_as

from ...source import Source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Union, Optional

import openapi_pydantic as oas
from pydantic import parse_obj_as
import openapi_schema_pydantic as oas

from ...source import Source
from ..utils import schema_from_source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/any_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .schema import AnySchema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/bool_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .schema import BoolSchema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/enum_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Union, Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from ..utils import schema_from_source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/float_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .schema import FloatSchema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/int_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .schema import IntSchema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/list_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from . import parse_schema
from ...source import Source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/model_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Dict, List, Type, Tuple, Union, TypeVar, Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from .. import add_schema
from . import parse_schema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/none_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from .schema import NoneSchema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/string_schema.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Union, Optional

import openapi_schema_pydantic as oas
import openapi_pydantic as oas

from ...source import Source
from ..utils import schema_from_source
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/schemas/union_schema.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List, Union, Optional

import openapi_pydantic as oas
from pydantic import parse_obj_as
import openapi_schema_pydantic as oas

from .. import add_schema
from . import parse_schema
Expand Down
2 changes: 1 addition & 1 deletion codegen/parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from keyword import iskeyword
from typing import List, Union

import openapi_pydantic as oas
from pydantic import parse_obj_as
import openapi_schema_pydantic as oas

from ..source import Source
from . import get_override_config
Expand Down
276 changes: 138 additions & 138 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Jinja2 = "^3.1.2"
nonemoji = "^0.1.2"
jsonpointer = "^2.3"
pre-commit = "^3.0.0"
openapi-schema-pydantic = "^1.2.4"
openapi-pydantic = "^0.3.2"

[tool.poetry.extras]
jwt = ["PyJWT"]
Expand Down