Skip to content

Commit 73cf49b

Browse files
author
Raphael Krupinski
committed
🧑‍💻 Normalize process_* params.
1 parent dd27f5e commit 73cf49b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lapidary/render/model/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def process_schema(self, value: openapi.Schema, stack: Stack, required: bool = T
112112
assert isinstance(value, openapi.Schema)
113113
logger.debug('Process schema %s', stack)
114114

115-
typ = self._process_schema(stack, value)
115+
typ = self._process_schema(value, stack)
116116

117117
if value.nullable or not required:
118118
typ = python.GenericTypeHint.union_of(typ, python.NONE)
@@ -140,8 +140,8 @@ def _get_composite_type_hint(
140140

141141
def _process_schema(
142142
self,
143-
stack: Stack,
144143
value: openapi.Schema,
144+
stack: Stack,
145145
) -> python.TypeHint:
146146
if value.type == openapi.Type.string:
147147
typ = STRING_FORMATS.get(value.format, str) if value.format else str

0 commit comments

Comments
 (0)