|
1 | 1 | import typing |
2 | 2 | import typing_extensions |
3 | 3 |
|
| 4 | +from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi |
| 5 | +from unit_test_api.apis.tags.path_post_api import PathPostApi |
4 | 6 | from unit_test_api.apis.tags.prefix_items_api import PrefixItemsApi |
5 | | -from unit_test_api.apis.tags.maximum_api import MaximumApi |
6 | | -from unit_test_api.apis.tags.pattern_api import PatternApi |
| 7 | +from unit_test_api.apis.tags.content_type_json_api import ContentTypeJsonApi |
7 | 8 | from unit_test_api.apis.tags.additional_properties_api import AdditionalPropertiesApi |
8 | | -from unit_test_api.apis.tags.response_content_content_type_schema_api import ResponseContentContentTypeSchemaApi |
9 | | -from unit_test_api.apis.tags.dependent_required_api import DependentRequiredApi |
10 | | -from unit_test_api.apis.tags.min_items_api import MinItemsApi |
11 | | -from unit_test_api.apis.tags.min_length_api import MinLengthApi |
12 | | -from unit_test_api.apis.tags.required_api import RequiredApi |
13 | | -from unit_test_api.apis.tags.max_length_api import MaxLengthApi |
14 | | -from unit_test_api.apis.tags._not_api import _NotApi |
15 | | -from unit_test_api.apis.tags.unevaluated_items_api import UnevaluatedItemsApi |
16 | | -from unit_test_api.apis.tags.path_post_api import PathPostApi |
17 | | -from unit_test_api.apis.tags.exclusive_minimum_api import ExclusiveMinimumApi |
18 | | -from unit_test_api.apis.tags.if_then_else_api import IfThenElseApi |
19 | | -from unit_test_api.apis.tags.min_properties_api import MinPropertiesApi |
20 | | -from unit_test_api.apis.tags.property_names_api import PropertyNamesApi |
21 | | -from unit_test_api.apis.tags.unique_items_api import UniqueItemsApi |
22 | | -from unit_test_api.apis.tags.operation_request_body_api import OperationRequestBodyApi |
23 | | -from unit_test_api.apis.tags.contains_api import ContainsApi |
24 | | -from unit_test_api.apis.tags.one_of_api import OneOfApi |
25 | | -from unit_test_api.apis.tags.min_contains_api import MinContainsApi |
26 | | -from unit_test_api.apis.tags.max_contains_api import MaxContainsApi |
27 | | -from unit_test_api.apis.tags.ref_api import RefApi |
28 | 9 | from unit_test_api.apis.tags.all_of_api import AllOfApi |
29 | | -from unit_test_api.apis.tags.exclusive_maximum_api import ExclusiveMaximumApi |
30 | | -from unit_test_api.apis.tags.minimum_api import MinimumApi |
31 | 10 | from unit_test_api.apis.tags.any_of_api import AnyOfApi |
32 | | -from unit_test_api.apis.tags.multiple_of_api import MultipleOfApi |
33 | 11 | from unit_test_api.apis.tags.type_api import TypeApi |
34 | | -from unit_test_api.apis.tags.items_api import ItemsApi |
35 | | -from unit_test_api.apis.tags.format_api import FormatApi |
36 | | -from unit_test_api.apis.tags.properties_api import PropertiesApi |
37 | | -from unit_test_api.apis.tags.content_type_json_api import ContentTypeJsonApi |
38 | | -from unit_test_api.apis.tags.max_properties_api import MaxPropertiesApi |
39 | | -from unit_test_api.apis.tags.unevaluated_properties_api import UnevaluatedPropertiesApi |
| 12 | +from unit_test_api.apis.tags.multiple_of_api import MultipleOfApi |
40 | 13 | from unit_test_api.apis.tags.const_api import ConstApi |
| 14 | +from unit_test_api.apis.tags.contains_api import ContainsApi |
| 15 | +from unit_test_api.apis.tags.format_api import FormatApi |
| 16 | +from unit_test_api.apis.tags.dependent_schemas_api import DependentSchemasApi |
| 17 | +from unit_test_api.apis.tags.dependent_required_api import DependentRequiredApi |
41 | 18 | from unit_test_api.apis.tags.enum_api import EnumApi |
| 19 | +from unit_test_api.apis.tags.exclusive_maximum_api import ExclusiveMaximumApi |
| 20 | +from unit_test_api.apis.tags.exclusive_minimum_api import ExclusiveMinimumApi |
| 21 | +from unit_test_api.apis.tags._not_api import _NotApi |
| 22 | +from unit_test_api.apis.tags.if_then_else_api import IfThenElseApi |
| 23 | +from unit_test_api.apis.tags.items_api import ItemsApi |
| 24 | +from unit_test_api.apis.tags.max_contains_api import MaxContainsApi |
| 25 | +from unit_test_api.apis.tags.maximum_api import MaximumApi |
42 | 26 | from unit_test_api.apis.tags.max_items_api import MaxItemsApi |
| 27 | +from unit_test_api.apis.tags.max_length_api import MaxLengthApi |
| 28 | +from unit_test_api.apis.tags.max_properties_api import MaxPropertiesApi |
| 29 | +from unit_test_api.apis.tags.min_contains_api import MinContainsApi |
| 30 | +from unit_test_api.apis.tags.minimum_api import MinimumApi |
| 31 | +from unit_test_api.apis.tags.min_items_api import MinItemsApi |
| 32 | +from unit_test_api.apis.tags.min_length_api import MinLengthApi |
| 33 | +from unit_test_api.apis.tags.min_properties_api import MinPropertiesApi |
43 | 34 | from unit_test_api.apis.tags.pattern_properties_api import PatternPropertiesApi |
44 | | -from unit_test_api.apis.tags.dependent_schemas_api import DependentSchemasApi |
| 35 | +from unit_test_api.apis.tags.one_of_api import OneOfApi |
| 36 | +from unit_test_api.apis.tags.properties_api import PropertiesApi |
| 37 | +from unit_test_api.apis.tags.pattern_api import PatternApi |
| 38 | +from unit_test_api.apis.tags.ref_api import RefApi |
| 39 | +from unit_test_api.apis.tags.property_names_api import PropertyNamesApi |
| 40 | +from unit_test_api.apis.tags.required_api import RequiredApi |
| 41 | +from unit_test_api.apis.tags.unevaluated_items_api import UnevaluatedItemsApi |
| 42 | +from unit_test_api.apis.tags.unevaluated_properties_api import UnevaluatedPropertiesApi |
| 43 | +from unit_test_api.apis.tags.unique_items_api import UniqueItemsApi |
| 44 | +from unit_test_api.apis.tags.response_content_content_type_schema_api import ResponseContentContentTypeSchemaApi |
45 | 45 |
|
46 | 46 | TagToApi = typing.TypedDict( |
47 | 47 | 'TagToApi', |
48 | 48 | { |
| 49 | + "operation.requestBody": typing.Type[OperationRequestBodyApi], |
| 50 | + "path.post": typing.Type[PathPostApi], |
49 | 51 | "prefixItems": typing.Type[PrefixItemsApi], |
50 | | - "maximum": typing.Type[MaximumApi], |
51 | | - "pattern": typing.Type[PatternApi], |
| 52 | + "contentType_json": typing.Type[ContentTypeJsonApi], |
52 | 53 | "additionalProperties": typing.Type[AdditionalPropertiesApi], |
53 | | - "response.content.contentType.schema": typing.Type[ResponseContentContentTypeSchemaApi], |
54 | | - "dependentRequired": typing.Type[DependentRequiredApi], |
55 | | - "minItems": typing.Type[MinItemsApi], |
56 | | - "minLength": typing.Type[MinLengthApi], |
57 | | - "required": typing.Type[RequiredApi], |
58 | | - "maxLength": typing.Type[MaxLengthApi], |
59 | | - "not": typing.Type[_NotApi], |
60 | | - "unevaluatedItems": typing.Type[UnevaluatedItemsApi], |
61 | | - "path.post": typing.Type[PathPostApi], |
62 | | - "exclusiveMinimum": typing.Type[ExclusiveMinimumApi], |
63 | | - "if-then-else": typing.Type[IfThenElseApi], |
64 | | - "minProperties": typing.Type[MinPropertiesApi], |
65 | | - "propertyNames": typing.Type[PropertyNamesApi], |
66 | | - "uniqueItems": typing.Type[UniqueItemsApi], |
67 | | - "operation.requestBody": typing.Type[OperationRequestBodyApi], |
68 | | - "contains": typing.Type[ContainsApi], |
69 | | - "oneOf": typing.Type[OneOfApi], |
70 | | - "minContains": typing.Type[MinContainsApi], |
71 | | - "maxContains": typing.Type[MaxContainsApi], |
72 | | - "$ref": typing.Type[RefApi], |
73 | 54 | "allOf": typing.Type[AllOfApi], |
74 | | - "exclusiveMaximum": typing.Type[ExclusiveMaximumApi], |
75 | | - "minimum": typing.Type[MinimumApi], |
76 | 55 | "anyOf": typing.Type[AnyOfApi], |
77 | | - "multipleOf": typing.Type[MultipleOfApi], |
78 | 56 | "type": typing.Type[TypeApi], |
79 | | - "items": typing.Type[ItemsApi], |
80 | | - "format": typing.Type[FormatApi], |
81 | | - "properties": typing.Type[PropertiesApi], |
82 | | - "contentType_json": typing.Type[ContentTypeJsonApi], |
83 | | - "maxProperties": typing.Type[MaxPropertiesApi], |
84 | | - "unevaluatedProperties": typing.Type[UnevaluatedPropertiesApi], |
| 57 | + "multipleOf": typing.Type[MultipleOfApi], |
85 | 58 | "const": typing.Type[ConstApi], |
| 59 | + "contains": typing.Type[ContainsApi], |
| 60 | + "format": typing.Type[FormatApi], |
| 61 | + "dependentSchemas": typing.Type[DependentSchemasApi], |
| 62 | + "dependentRequired": typing.Type[DependentRequiredApi], |
86 | 63 | "enum": typing.Type[EnumApi], |
| 64 | + "exclusiveMaximum": typing.Type[ExclusiveMaximumApi], |
| 65 | + "exclusiveMinimum": typing.Type[ExclusiveMinimumApi], |
| 66 | + "not": typing.Type[_NotApi], |
| 67 | + "if-then-else": typing.Type[IfThenElseApi], |
| 68 | + "items": typing.Type[ItemsApi], |
| 69 | + "maxContains": typing.Type[MaxContainsApi], |
| 70 | + "maximum": typing.Type[MaximumApi], |
87 | 71 | "maxItems": typing.Type[MaxItemsApi], |
| 72 | + "maxLength": typing.Type[MaxLengthApi], |
| 73 | + "maxProperties": typing.Type[MaxPropertiesApi], |
| 74 | + "minContains": typing.Type[MinContainsApi], |
| 75 | + "minimum": typing.Type[MinimumApi], |
| 76 | + "minItems": typing.Type[MinItemsApi], |
| 77 | + "minLength": typing.Type[MinLengthApi], |
| 78 | + "minProperties": typing.Type[MinPropertiesApi], |
88 | 79 | "patternProperties": typing.Type[PatternPropertiesApi], |
89 | | - "dependentSchemas": typing.Type[DependentSchemasApi], |
| 80 | + "oneOf": typing.Type[OneOfApi], |
| 81 | + "properties": typing.Type[PropertiesApi], |
| 82 | + "pattern": typing.Type[PatternApi], |
| 83 | + "$ref": typing.Type[RefApi], |
| 84 | + "propertyNames": typing.Type[PropertyNamesApi], |
| 85 | + "required": typing.Type[RequiredApi], |
| 86 | + "unevaluatedItems": typing.Type[UnevaluatedItemsApi], |
| 87 | + "unevaluatedProperties": typing.Type[UnevaluatedPropertiesApi], |
| 88 | + "uniqueItems": typing.Type[UniqueItemsApi], |
| 89 | + "response.content.contentType.schema": typing.Type[ResponseContentContentTypeSchemaApi], |
90 | 90 | } |
91 | 91 | ) |
92 | 92 |
|
93 | 93 | tag_to_api = TagToApi( |
94 | 94 | { |
| 95 | + "operation.requestBody": OperationRequestBodyApi, |
| 96 | + "path.post": PathPostApi, |
95 | 97 | "prefixItems": PrefixItemsApi, |
96 | | - "maximum": MaximumApi, |
97 | | - "pattern": PatternApi, |
| 98 | + "contentType_json": ContentTypeJsonApi, |
98 | 99 | "additionalProperties": AdditionalPropertiesApi, |
99 | | - "response.content.contentType.schema": ResponseContentContentTypeSchemaApi, |
100 | | - "dependentRequired": DependentRequiredApi, |
101 | | - "minItems": MinItemsApi, |
102 | | - "minLength": MinLengthApi, |
103 | | - "required": RequiredApi, |
104 | | - "maxLength": MaxLengthApi, |
105 | | - "not": _NotApi, |
106 | | - "unevaluatedItems": UnevaluatedItemsApi, |
107 | | - "path.post": PathPostApi, |
108 | | - "exclusiveMinimum": ExclusiveMinimumApi, |
109 | | - "if-then-else": IfThenElseApi, |
110 | | - "minProperties": MinPropertiesApi, |
111 | | - "propertyNames": PropertyNamesApi, |
112 | | - "uniqueItems": UniqueItemsApi, |
113 | | - "operation.requestBody": OperationRequestBodyApi, |
114 | | - "contains": ContainsApi, |
115 | | - "oneOf": OneOfApi, |
116 | | - "minContains": MinContainsApi, |
117 | | - "maxContains": MaxContainsApi, |
118 | | - "$ref": RefApi, |
119 | 100 | "allOf": AllOfApi, |
120 | | - "exclusiveMaximum": ExclusiveMaximumApi, |
121 | | - "minimum": MinimumApi, |
122 | 101 | "anyOf": AnyOfApi, |
123 | | - "multipleOf": MultipleOfApi, |
124 | 102 | "type": TypeApi, |
125 | | - "items": ItemsApi, |
126 | | - "format": FormatApi, |
127 | | - "properties": PropertiesApi, |
128 | | - "contentType_json": ContentTypeJsonApi, |
129 | | - "maxProperties": MaxPropertiesApi, |
130 | | - "unevaluatedProperties": UnevaluatedPropertiesApi, |
| 103 | + "multipleOf": MultipleOfApi, |
131 | 104 | "const": ConstApi, |
| 105 | + "contains": ContainsApi, |
| 106 | + "format": FormatApi, |
| 107 | + "dependentSchemas": DependentSchemasApi, |
| 108 | + "dependentRequired": DependentRequiredApi, |
132 | 109 | "enum": EnumApi, |
| 110 | + "exclusiveMaximum": ExclusiveMaximumApi, |
| 111 | + "exclusiveMinimum": ExclusiveMinimumApi, |
| 112 | + "not": _NotApi, |
| 113 | + "if-then-else": IfThenElseApi, |
| 114 | + "items": ItemsApi, |
| 115 | + "maxContains": MaxContainsApi, |
| 116 | + "maximum": MaximumApi, |
133 | 117 | "maxItems": MaxItemsApi, |
| 118 | + "maxLength": MaxLengthApi, |
| 119 | + "maxProperties": MaxPropertiesApi, |
| 120 | + "minContains": MinContainsApi, |
| 121 | + "minimum": MinimumApi, |
| 122 | + "minItems": MinItemsApi, |
| 123 | + "minLength": MinLengthApi, |
| 124 | + "minProperties": MinPropertiesApi, |
134 | 125 | "patternProperties": PatternPropertiesApi, |
135 | | - "dependentSchemas": DependentSchemasApi, |
| 126 | + "oneOf": OneOfApi, |
| 127 | + "properties": PropertiesApi, |
| 128 | + "pattern": PatternApi, |
| 129 | + "$ref": RefApi, |
| 130 | + "propertyNames": PropertyNamesApi, |
| 131 | + "required": RequiredApi, |
| 132 | + "unevaluatedItems": UnevaluatedItemsApi, |
| 133 | + "unevaluatedProperties": UnevaluatedPropertiesApi, |
| 134 | + "uniqueItems": UniqueItemsApi, |
| 135 | + "response.content.contentType.schema": ResponseContentContentTypeSchemaApi, |
136 | 136 | } |
137 | 137 | ) |
0 commit comments