I just discovered the command manage.py spectacular (usually we serve the schema as an endpoint).
Basically i would like to check in our CI-Pipeline if any error occured during the schema generation to improve the code quality. I found the flag fail-on-warn, but could not find the flag fail-on-error :( .
Is there an option to do so?
The "Schema generation summary" already shows the Warnings and Errors if I use the flag fail-on-warn and the command fails if any warning occured:

I just discovered the command
manage.py spectacular(usually we serve the schema as an endpoint).Basically i would like to check in our CI-Pipeline if any error occured during the schema generation to improve the code quality. I found the flag
fail-on-warn, but could not find the flagfail-on-error:( .Is there an option to do so?

The "Schema generation summary" already shows the Warnings and Errors if I use the flag
fail-on-warnand the command fails if any warning occured: