Skip to content

Fix rights typing in OpenAPI docs

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