Closes #20203: Add a pre-commit check for OpenAPI schema changes #1352

Closed
opened 2026-04-05 23:53:50 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jeremystretch on 9/2/2025

Closes: #20203

  • Add a static record of the OpenAPI schema at contrib/openapi.json
  • Introduce the verify-openapi.sh script to generate the OpenAPI schema & compare it to the static record
  • Add a pre-commit rule to run the OpenAPI verification check
  • Update the release documentation to include updating contrib/openapi.json
*Originally created by @jeremystretch on 9/2/2025* ### Closes: #20203 - Add a static record of the OpenAPI schema at `contrib/openapi.json` - Introduce the `verify-openapi.sh` script to generate the OpenAPI schema & compare it to the static record - Add a `pre-commit` rule to run the OpenAPI verification check - Update the release documentation to include updating `contrib/openapi.json`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1352