Skip to content

Commit cbcd3e1

Browse files
amaskara-ddclaude
andcommitted
Support pageStart in x-pagination extension
Add support for the pageStart field in the x-pagination OpenAPI extension to allow APIs that use 1-based page numbering (like Case Management) to work correctly with pagination helpers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 42f3f95 commit cbcd3e1

File tree

1 file changed

+1
-1
lines changed
  • .generator/src/generator/templates

1 file changed

+1
-1
lines changed

.generator/src/generator/templates/Api.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public class {{ name }} {
148148
String valueGetterPath = "";
149149
String valueSetterPath = "{%- if getters|length > 1 %}{{ ".".join(getters[:getters|length-1]) }}.{%- endif %}{{ setters[getters|length-1] }}";
150150
Boolean valueSetterParamOptional = {{ optional|lower }};
151-
parameters.{% if getters|length > 1 %}{{ ".".join(getters[:getters|length-1]) }}.{%- endif %}{{ setters[getters|length-1] }}({{ 0|format_value(schema=paramSchema['schema']) }});
151+
parameters.{% if getters|length > 1 %}{{ ".".join(getters[:getters|length-1]) }}.{%- endif %}{{ setters[getters|length-1] }}({{ (pagination.pageStart | default(0))|format_value(schema=paramSchema['schema']) }});
152152
{%- endif %}
153153

154154
{#- Limit param field #}

0 commit comments

Comments
 (0)