Skip to content

PaginatedResult attributes #70

@mattheworiordan

Description

@mattheworiordan

Everywhere it seems has_next and is_last is used they are used as methods i.e. has_next(), yet in the spec they are attributes, and even in the code, they appear to be attributes, see

@property
def items(self):
return self.__items
def has_first(self):
return self.__rel_first is not None
def has_next(self):
return self.__rel_next is not None
def is_last(self):
return not self.has_next()

We should change all examples to access as attributes and update the docs as well if this is possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improved functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions