Skip to content

Conversation

@Gerrit91
Copy link
Contributor

@Gerrit91 Gerrit91 commented Mar 21, 2024

We often produce responses with our server that are not valid against the Swagger spec. For Go clients this seems not to be a big issue as type safety is guaranteed and it's not possible to produce server responses that violate type constraints. For other clients like Python there are much stricter validations though.

Our main problem that we made is to declare arrays without omitempty, which for Go Clients does not matter but for other languages it might be problematic.

This PR is non-breaking for Go Clients.

@Gerrit91 Gerrit91 marked this pull request as ready for review March 21, 2024 12:24
@Gerrit91 Gerrit91 requested a review from a team as a code owner March 21, 2024 12:24
@Gerrit91 Gerrit91 requested a review from majst01 March 21, 2024 12:24
@Gerrit91
Copy link
Contributor Author

Gerrit91 commented Mar 25, 2024

For some fields we were lucky before because we returned directly what was returned from the RethinkDB, which never returns nil but an empty slice for document fields. Therefore we fulfilled the spec's contract without explicitly setting it, e.g. for destinationprefixes.

@github-project-automation github-project-automation bot moved this to Review in Development Jun 5, 2025
@Gerrit91 Gerrit91 removed the status in Development Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants