that specific description location you are referring to is not easily available through the decorators. however, there are multiple places a description can be put.
@extend_schema(description='Your description')
this will add the description to the view action (operation). However, this is targeted to the operation itself and not the 500
Error case.
adding a docstring to your Error
serializer. probably what you want to do.
this part is still a bit rough as the "Error" feature is still work in progress.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…