0.29.2

(fix): Fix serialization of types with circular references

0.29.1

(fix): Pagination endpoints that define nested offset/cursor properties are now functional. A new setObjectProperty helper is used to dynamically set the property, which is inspired by Lodash’s set function (https://lodash.com/docs/4.17.15#set).

The generated code now looks like the following:

1let _offset = request?.pagination?.page != null ? request?.pagination?.page : 1;
2return new core.Pageable<SeedPagination.ListUsersPaginationResponse, SeedPagination.User>({
3 response: await list(request),
4 hasNextPage: (response) => (response?.data ?? []).length > 0,
5 getItems: (response) => response?.data ?? [],
6 loadPage: (_response) => {
7 _offset += 1;
8 return list(core.setObjectProperty(request, "pagination.page", _offset));
9 }
10});