v0.5.0
The pagination extension now supports setting the API operation to fetch the next page of results, using the operationId parameter as defined in the OpenAPI specification.
🧨 Breaking Changes
-
Removed
urlparameter from pagination configuration. Now, the previous request URL is automatically reused for the next page request. If the URL needs to be changed, it can be done adding a modifier on the$urlfield.Before:
pagination: next: url: "https://api.example.com/next-page"
After:
pagination: next: modifiers: - param: "$url" value: "https://api.example.com/next-page"
Added
APIOperationclass forpython-treetemplate with one method for each OpenAPI operation. This serves for pagination operations and is not meant for direct use.- Support for literal curly braces in dynamic expressions (e.g.,
{"foo": 123}will be evaluated as a literal string). - Pagination strategy to retrieve the next page of results using an existing API operation.
- Improved error details when extensions parsing fails.