Skip to content

fix: Implement zero as limit for getAllSubmodels#1000

Merged
aaronzi merged 1 commit intoeclipse-basyx:mainfrom
Linus187erz:fix/pagination-submodels
Apr 23, 2026
Merged

fix: Implement zero as limit for getAllSubmodels#1000
aaronzi merged 1 commit intoeclipse-basyx:mainfrom
Linus187erz:fix/pagination-submodels

Conversation

@Linus187erz
Copy link
Copy Markdown
Contributor

Pull Request Template

Description of Changes

Implemented zero as limit for getAllSubmodels and getAllSubmodelElements API endpoints. Minimum value has been changed from 1 to 0, enabling the call "/submodels?limit=0" to return the full list of Submodels. This mirrors the existing "/shells?limit=0" behavior introduced in commit 770a65f

Related Issue

None

BaSyx Configuration for Testing

I used an env with >100 Submodels. "/submodels?limit=0" returns all of the submodels. Same as "/submodels?limit=99999"


Signed-off-by: Linus Schöler <linus@schoeler.de>
@Linus187erz Linus187erz marked this pull request as ready for review April 22, 2026 06:53
@aaronzi aaronzi merged commit 4848749 into eclipse-basyx:main Apr 23, 2026
45 checks passed
@Linus187erz Linus187erz deleted the fix/pagination-submodels branch April 23, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants