Skip to content

Fix swagger property casing#1510

Merged
neolynx merged 1 commit into
aptly-dev:masterfrom
LeiCraft:fix-swagger-pascalcase
Dec 15, 2025
Merged

Fix swagger property casing#1510
neolynx merged 1 commit into
aptly-dev:masterfrom
LeiCraft:fix-swagger-pascalcase

Conversation

@LeiCraft

@LeiCraft LeiCraft commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

Summary

  • The API handlers marshal Go structs without json tags, so responses stay in PascalCase while the swagger generator defaulted to camelCase, producing misleading docs.
  • Pass --propertyStrategy pascalcase to every swag init invocation (Makefile + CI workflow) so schemas keep the real field names.
  • Regenerated swagger locally to verify models such as deb.LocalRepo now match actual responses.

Testing

  • make swagger

@neolynx neolynx requested a review from a team December 15, 2025 09:22
@neolynx neolynx self-assigned this Dec 15, 2025

@neolynx neolynx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks !

@neolynx neolynx merged commit 6b8651f into aptly-dev:master Dec 15, 2025
37 checks passed
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