Fix rights typing in OpenAPI docs
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