Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Schema Generation #13353

Merged

Conversation

danner26
Copy link
Member

@danner26 danner26 commented Aug 2, 2023

Fixes: #10030

Added manage.py subcommand (buildschema) to build a valid schema file for the devicetype-library. Data within this file will be used directly within the validation schema to ensure choices are synced properly between both repositories. Future revisions of this will be utilized with GitHub Actions to automatically update the devicetype-library (or alternatively we will write the schema to this repository and pull it on the fly).

@danner26 danner26 added the type: feature Introduction of new functionality to the application label Aug 2, 2023
@danner26 danner26 self-assigned this Aug 2, 2023
@danner26 danner26 changed the title Feature #10030 - Schema Generation Feature - Schema Generation Aug 2, 2023
contrib/generated_schema.json Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
@danner26 danner26 marked this pull request as ready for review August 4, 2023 16:06
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
netbox/extras/management/commands/buildschema.py Outdated Show resolved Hide resolved
@jeremystretch jeremystretch removed the type: feature Introduction of new functionality to the application label Aug 11, 2023
@jeremystretch jeremystretch merged commit 40afe6c into netbox-community:develop Aug 11, 2023
4 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically build JSON schema for the device type library with each release
3 participants