Skip to content

refactor(http)!: improve JSON encoding with error handling and test coverage#19

Merged
pcfreak30 merged 1 commit intodevelopfrom
updates
May 27, 2025
Merged

refactor(http)!: improve JSON encoding with error handling and test coverage#19
pcfreak30 merged 1 commit intodevelopfrom
updates

Conversation

@pcfreak30
Copy link
Copy Markdown
Member

  • Modified Encode() method to return errors instead of silently ignoring them
  • Added comprehensive test cases including:
    • Error scenarios (channel and function types)
    • Edge cases (unexported struct fields)
    • Proper content-type verification
  • Ensured consistent JSON formatting for empty slices/maps
  • Wpdate go.lumeweb.com/gswagger to v0.16.1

…overage

- Modified Encode() method to return errors instead of silently ignoring them
- Added comprehensive test cases including:
  - Error scenarios (channel and function types)
  - Edge cases (unexported struct fields)
  - Proper content-type verification
- Ensured consistent JSON formatting for empty slices/maps
- Wpdate go.lumeweb.com/gswagger to v0.16.1
@pcfreak30 pcfreak30 merged commit 5d8cc7f into develop May 27, 2025
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.

1 participant