Skip to content

Is there an option to check for errors during schema generation in our CI-Pipeline? #1473

Description

@Grayknife

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:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions