Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Oct 3, 2025

Fixes: #20494

Adjusts the schema mapping for IntegerRangeSerializer by setting match_subclasses to True and refining the array definition. Adds an example field for clarity in generated OpenAPI documentation.

Adjusts the schema mapping for `IntegerRangeSerializer` by setting
`match_subclasses` to `True` and refining the array definition. Adds
an example field for clarity in generated OpenAPI documentation.

Fixes netbox-community#20494
@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team October 3, 2025 18:55
Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pheus!

@jeremystretch jeremystretch merged commit 99e367c into netbox-community:main Oct 6, 2025
7 checks passed
@pheus pheus deleted the 20494-fix-openapi-schema-for-integer-range-serializer branch October 6, 2025 19:45
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2025
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.

REST API docs: vid_ranges POST example for VLANGroup is triple‑nested ([[[lo, hi]]]) instead of [[lo, hi]]

2 participants