FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

fix: keep snake case in openapi schema token authentication

Merged Sebastiaan ten Pas requested to merge fix-openapi-schema-snake-case into main
All threads resolved!

Part of frontend#75 (closed)

While working on frontend#75 (closed), I found out that the OpenAPI schema camelcases the token authentication endpoint. That's because the transformation to camelcase is done on the schema level and the function is not aware of the view overriding the parser_classes and renderer_classes. Because the client SDKs are generated from the OpenAPI schema, currently the clients are not working with the token authentication endpoint, because we use snake_case there. This MR fixes that, by wrapping the camelize_serializer_fields function and keeping the TokenRequest and TokenResponse schemas in snake_case.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Mike Knee requested review from @mk2155

    requested review from @mk2155

  • added 1 commit

    • 417a7c84 - fix: keep snake case in openapi schema token authentication

    Compare with previous version

  • Mike Knee resolved all threads

    resolved all threads

  • Mike Knee approved this merge request

    approved this merge request

  • mentioned in commit 13832315

  • Please register or sign in to reply
    Loading