|
1 | | -import warnings |
2 | 1 | from dataclasses import dataclass |
3 | | -from dataclasses import field |
4 | | -from functools import lru_cache |
5 | | -from pathlib import Path |
6 | | -from typing import Any |
7 | | -from typing import Hashable |
8 | | -from typing import Mapping |
9 | | -from typing import Optional |
10 | | -from typing import Type |
11 | | -from typing import TypeVar |
12 | 2 | from typing import Union |
13 | 3 |
|
14 | 4 | from jsonschema._utils import Unset |
15 | 5 | from jsonschema.validators import _UNSET |
16 | | -from jsonschema_path import SchemaPath |
17 | | -from jsonschema_path.handlers.protocols import SupportsRead |
18 | | -from jsonschema_path.typing import Schema |
19 | | -from openapi_spec_validator import validate |
20 | 6 | from openapi_spec_validator.validation.types import SpecValidatorType |
21 | | -from openapi_spec_validator.versions.datatypes import SpecVersion |
22 | | -from openapi_spec_validator.versions.exceptions import OpenAPIVersionNotFound |
23 | | -from openapi_spec_validator.versions.shortcuts import get_spec_version |
24 | 7 |
|
25 | | -from openapi_core.exceptions import SpecError |
26 | | -from openapi_core.protocols import Request |
27 | | -from openapi_core.protocols import Response |
28 | | -from openapi_core.protocols import WebhookRequest |
29 | | -from openapi_core.types import AnyRequest |
30 | 8 | from openapi_core.unmarshalling.configurations import UnmarshallerConfig |
31 | | -from openapi_core.unmarshalling.request import ( |
32 | | - UNMARSHALLERS as REQUEST_UNMARSHALLERS, |
33 | | -) |
34 | | -from openapi_core.unmarshalling.request import ( |
35 | | - WEBHOOK_UNMARSHALLERS as WEBHOOK_REQUEST_UNMARSHALLERS, |
36 | | -) |
37 | | -from openapi_core.unmarshalling.request.datatypes import RequestUnmarshalResult |
38 | | -from openapi_core.unmarshalling.request.protocols import RequestUnmarshaller |
39 | | -from openapi_core.unmarshalling.request.protocols import ( |
40 | | - WebhookRequestUnmarshaller, |
41 | | -) |
42 | 9 | from openapi_core.unmarshalling.request.types import RequestUnmarshallerType |
43 | 10 | from openapi_core.unmarshalling.request.types import ( |
44 | 11 | WebhookRequestUnmarshallerType, |
45 | 12 | ) |
46 | | -from openapi_core.unmarshalling.response import ( |
47 | | - UNMARSHALLERS as RESPONSE_UNMARSHALLERS, |
48 | | -) |
49 | | -from openapi_core.unmarshalling.response import ( |
50 | | - WEBHOOK_UNMARSHALLERS as WEBHOOK_RESPONSE_UNMARSHALLERS, |
51 | | -) |
52 | | -from openapi_core.unmarshalling.response.datatypes import ( |
53 | | - ResponseUnmarshalResult, |
54 | | -) |
55 | | -from openapi_core.unmarshalling.response.protocols import ResponseUnmarshaller |
56 | | -from openapi_core.unmarshalling.response.protocols import ( |
57 | | - WebhookResponseUnmarshaller, |
58 | | -) |
59 | 13 | from openapi_core.unmarshalling.response.types import ResponseUnmarshallerType |
60 | 14 | from openapi_core.unmarshalling.response.types import ( |
61 | 15 | WebhookResponseUnmarshallerType, |
62 | 16 | ) |
63 | | -from openapi_core.validation.request import VALIDATORS as REQUEST_VALIDATORS |
64 | | -from openapi_core.validation.request import ( |
65 | | - WEBHOOK_VALIDATORS as WEBHOOK_REQUEST_VALIDATORS, |
66 | | -) |
67 | | -from openapi_core.validation.request.protocols import RequestValidator |
68 | | -from openapi_core.validation.request.protocols import WebhookRequestValidator |
69 | 17 | from openapi_core.validation.request.types import RequestValidatorType |
70 | 18 | from openapi_core.validation.request.types import WebhookRequestValidatorType |
71 | | -from openapi_core.validation.response import VALIDATORS as RESPONSE_VALIDATORS |
72 | | -from openapi_core.validation.response import ( |
73 | | - WEBHOOK_VALIDATORS as WEBHOOK_RESPONSE_VALIDATORS, |
74 | | -) |
75 | | -from openapi_core.validation.response.protocols import ResponseValidator |
76 | | -from openapi_core.validation.response.protocols import WebhookResponseValidator |
77 | 19 | from openapi_core.validation.response.types import ResponseValidatorType |
78 | 20 | from openapi_core.validation.response.types import WebhookResponseValidatorType |
79 | 21 |
|
|
0 commit comments