Closes #20715: Move OpenAPI schema check from pre-commit to CI

This commit is contained in:
Jeremy Stretch
2025-10-29 13:23:25 -04:00
parent 1fc849eb40
commit 3017527959
2 changed files with 3 additions and 8 deletions

View File

@@ -102,6 +102,9 @@ jobs:
- name: Validate Static Asset Integrity - name: Validate Static Asset Integrity
run: scripts/verify-bundles.sh run: scripts/verify-bundles.sh
- name: Check for changes to OpenAPI schema
run: scripts/verify-openapi.sh
- name: Run tests - name: Run tests
run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel run: coverage run --source="netbox/" netbox/manage.py test netbox/ --parallel

View File

@@ -21,14 +21,6 @@ repos:
language: system language: system
pass_filenames: false pass_filenames: false
types: [python] types: [python]
- id: openapi-check
name: "Validate OpenAPI schema"
description: "Check for any unexpected changes to the OpenAPI schema"
files: api/.*\.py$
entry: scripts/verify-openapi.sh
language: system
pass_filenames: false
types: [python]
- id: mkdocs-build - id: mkdocs-build
name: "Build documentation" name: "Build documentation"
description: "Build the documentation with mkdocs" description: "Build the documentation with mkdocs"