Skip to content
Snippets Groups Projects

Fix rights typing in OpenAPI docs

Merged Erwan Rouchet requested to merge fix-rights into master

ReDoc was displaying the corpus rights array as "rights": [null] (an array of anything) because of an easy mistake with ListField: ListField(CharField()) is perfectly valid, but it does not mean what one might think it means, since it would try to serialize the CharField itself; the correct value is ListField(child=CharField()).

Edited by Erwan Rouchet

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
Please register or sign in to reply
Loading