I have an Api in DRF, describes with swagger. In my serializer i have a field like that :
settings = serializers.DictField(child=serializers.JSONField())
Is it possible that in the swagger.json the field was describe as 'Json' and not as string:
"additionalProperties": {
"type": "string"
}
but
"additionalProperties": {
"type": "JSON"
}
Sorry this is not possbile with JSON Schema.
The types are the primitive types allowed by JSON.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With