Skip to content

v0.5.0

Choose a tag to compare

@flusflas flusflas released this 15 Aug 10:45
· 5 commits to main since this release
c0bd8e5

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 url parameter 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 $url field.

    Before:

    pagination:
      next:
        url: "https://api.example.com/next-page"

    After:

    pagination:
      next:
        modifiers:
          - param: "$url"
            value: "https://api.example.com/next-page"

Added

  • APIOperation class for python-tree template 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.