Automatically build JSON schema for the device type library with each release #6816

Closed
opened 2025-12-29 19:45:44 +01:00 by adam · 4 comments
Owner

Originally created by @jeremystretch on GitHub (Aug 16, 2022).

Originally assigned to: @danner26 on GitHub.

NetBox version

v3.2.9

Feature type

New functionality

Proposed functionality

Implement a mechanism for generating JSON schema for device type and related definitions. This could be a Django management command (e.g. manage.py buildschema), the output of which would be included with each NetBox release.

Use case

The NetBox devicetype library includes JSON schema for validating device and module type definitions. These definitions must be kept up-to-date with NetBox itself, which is currently a manual process. Generating the schema automatically and publishing it with each NetBox release will remove this administrative burden.

Additionally, once we implement #4347, schema can be generated for all relevant models as an additional resource.

Database changes

No response

External dependencies

No response

Originally created by @jeremystretch on GitHub (Aug 16, 2022). Originally assigned to: @danner26 on GitHub. ### NetBox version v3.2.9 ### Feature type New functionality ### Proposed functionality Implement a mechanism for generating JSON schema for device type and related definitions. This could be a Django management command (e.g. `manage.py buildschema`), the output of which would be included with each NetBox release. ### Use case The NetBox [devicetype library](https://github.com/netbox-community/devicetype-library) includes [JSON schema](https://github.com/netbox-community/devicetype-library/tree/master/schema) for validating device and module type definitions. These definitions must be kept up-to-date with NetBox itself, which is currently a manual process. Generating the schema automatically and publishing it with each NetBox release will remove this administrative burden. Additionally, once we implement #4347, schema can be generated for all relevant models as an additional resource. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 19:45:44 +01:00
adam closed this issue 2025-12-29 19:45:44 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 16, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Nov 16, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@ryanmerolle commented on GitHub (Apr 25, 2023):

This could be a good candidate for 3.6

@ryanmerolle commented on GitHub (Apr 25, 2023): This could be a good candidate for 3.6
Author
Owner

@danner26 commented on GitHub (Aug 1, 2023):

I agree this would be great!

@danner26 commented on GitHub (Aug 1, 2023): I agree this would be great!
Author
Owner

@danner26 commented on GitHub (Aug 4, 2023):

I have marked the PR as ready for review. This should be ready to be merged. Let me know if you need anything changed

@danner26 commented on GitHub (Aug 4, 2023): I have marked the PR as ready for review. This should be ready to be merged. Let me know if you need anything changed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6816