Skip to content

device module propertys jsonschema - enum options to lists#22495

Draft
ITJamie wants to merge 1 commit into
netbox-community:mainfrom
ITJamie:issue-21710
Draft

device module propertys jsonschema - enum options to lists#22495
ITJamie wants to merge 1 commit into
netbox-community:mainfrom
ITJamie:issue-21710

Conversation

@ITJamie

@ITJamie ITJamie commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Closes: #21710

Implemented support for JSON Schema array properties whose items define an enum:

  • Those fields now render as MultipleChoiceField instead of the old comma-separated array text field.
  • Non-enum arrays still use the existing array input behavior.
  • Module and module type detail panels now display stored list values as comma-separated text.
  • Added tests for:
    • array + items.enum field generation
    • plain arrays still using the old path
    • form clean/save round-trip
    • list rendering helper
    • module type view rendering for stored enum-array values

@ITJamie

ITJamie commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

example screenshots
Screenshot 2026-06-19 at 23 24 09

Screenshot 2026-06-19 at 23 24 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

device module profile type - properties jsonschema - convert enum options to dropdown list in forms

1 participant