Skip to content

Commit c0b9071

Browse files
committed
fix: schema object
1 parent a1cfc7c commit c0b9071

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/models/asyncapi_3_0_0/SchemaObject.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, input: Dict):
4545
if hasattr(input, 'additional_items'):
4646
self._additional_items: CoreSchemaMetaMinusSchemaObject | bool = input['additional_items']
4747
if hasattr(input, 'items'):
48-
self._items: | List[] = input['items']
48+
self._items: CoreSchemaMetaMinusSchemaObject | bool | List[CoreSchemaMetaMinusSchemaObject | bool] = input['items']
4949
if hasattr(input, 'max_items'):
5050
self._max_items: int = input['max_items']
5151
if hasattr(input, 'min_items'):
@@ -69,7 +69,7 @@ def __init__(self, input: Dict):
6969
if hasattr(input, 'pattern_properties'):
7070
self._pattern_properties: dict[str, CoreSchemaMetaMinusSchemaObject | bool] = input['pattern_properties']
7171
if hasattr(input, 'dependencies'):
72-
self._dependencies: dict[str, | List[str]] = input['dependencies']
72+
self._dependencies: dict[str, CoreSchemaMetaMinusSchemaObject | bool | List[str]] = input['dependencies']
7373
if hasattr(input, 'property_names'):
7474
self._property_names: CoreSchemaMetaMinusSchemaObject | bool = input['property_names']
7575
if hasattr(input, 'const'):
@@ -91,11 +91,11 @@ def __init__(self, input: Dict):
9191
if hasattr(input, 'reserved_else'):
9292
self._reserved_else: CoreSchemaMetaMinusSchemaObject | bool = input['reserved_else']
9393
if hasattr(input, 'all_of'):
94-
self._all_of: List[] = input['all_of']
94+
self._all_of: List[CoreSchemaMetaMinusSchemaObject | bool] = input['all_of']
9595
if hasattr(input, 'any_of'):
96-
self._any_of: List[] = input['any_of']
96+
self._any_of: List[CoreSchemaMetaMinusSchemaObject | bool] = input['any_of']
9797
if hasattr(input, 'one_of'):
98-
self._one_of: List[] = input['one_of']
98+
self._one_of: List[CoreSchemaMetaMinusSchemaObject | bool] = input['one_of']
9999
if hasattr(input, 'reserved_not'):
100100
self._reserved_not: CoreSchemaMetaMinusSchemaObject | bool = input['reserved_not']
101101
if hasattr(input, 'discriminator'):
@@ -241,10 +241,10 @@ def additional_items(self, additional_items: CoreSchemaMetaMinusSchemaObject | b
241241
self._additional_items = additional_items
242242

243243
@property
244-
def items(self) -> | List[]:
244+
def items(self) -> CoreSchemaMetaMinusSchemaObject | bool | List[CoreSchemaMetaMinusSchemaObject | bool]:
245245
return self._items
246246
@items.setter
247-
def items(self, items: | List[]):
247+
def items(self, items: CoreSchemaMetaMinusSchemaObject | bool | List[CoreSchemaMetaMinusSchemaObject | bool]):
248248
self._items = items
249249

250250
@property
@@ -325,10 +325,10 @@ def pattern_properties(self, pattern_properties: dict[str, CoreSchemaMetaMinusSc
325325
self._pattern_properties = pattern_properties
326326

327327
@property
328-
def dependencies(self) -> dict[str, | List[str]]:
328+
def dependencies(self) -> dict[str, CoreSchemaMetaMinusSchemaObject | bool | List[str]]:
329329
return self._dependencies
330330
@dependencies.setter
331-
def dependencies(self, dependencies: dict[str, | List[str]]):
331+
def dependencies(self, dependencies: dict[str, CoreSchemaMetaMinusSchemaObject | bool | List[str]]):
332332
self._dependencies = dependencies
333333

334334
@property
@@ -402,24 +402,24 @@ def reserved_else(self, reserved_else: CoreSchemaMetaMinusSchemaObject | bool):
402402
self._reserved_else = reserved_else
403403

404404
@property
405-
def all_of(self) -> List[]:
405+
def all_of(self) -> List[CoreSchemaMetaMinusSchemaObject | bool]:
406406
return self._all_of
407407
@all_of.setter
408-
def all_of(self, all_of: List[]):
408+
def all_of(self, all_of: List[CoreSchemaMetaMinusSchemaObject | bool]):
409409
self._all_of = all_of
410410

411411
@property
412-
def any_of(self) -> List[]:
412+
def any_of(self) -> List[CoreSchemaMetaMinusSchemaObject | bool]:
413413
return self._any_of
414414
@any_of.setter
415-
def any_of(self, any_of: List[]):
415+
def any_of(self, any_of: List[CoreSchemaMetaMinusSchemaObject | bool]):
416416
self._any_of = any_of
417417

418418
@property
419-
def one_of(self) -> List[]:
419+
def one_of(self) -> List[CoreSchemaMetaMinusSchemaObject | bool]:
420420
return self._one_of
421421
@one_of.setter
422-
def one_of(self, one_of: List[]):
422+
def one_of(self, one_of: List[CoreSchemaMetaMinusSchemaObject | bool]):
423423
self._one_of = one_of
424424

425425
@property

0 commit comments

Comments
 (0)