Skip to content

Commit 697cbe8

Browse files
feat: Add pagination support with Link header parsing and page size management, and generate utility functions.
1 parent 1875cd6 commit 697cbe8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openapi_python_client/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ def _create_package(self) -> None:
172172
types_path = self.package_dir / "types.py"
173173
types_path.write_text(types_template.render(), encoding=self.config.file_encoding)
174174

175+
utils_template = self.env.get_template("utils.py.jinja")
176+
utils_path = self.package_dir / "utils.py"
177+
utils_path.write_text(utils_template.render(), encoding=self.config.file_encoding)
178+
175179
def _build_metadata(self) -> None:
176180
if self.config.meta_type == MetaType.NONE:
177181
return

0 commit comments

Comments
 (0)