Skip to content

Commit

Permalink
fix rack facility_id
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyberkovitz authored and fbreckle committed Mar 26, 2023
1 parent 0f223b3 commit 6505ee5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netbox/models/writable_rack.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
):
prop_spec["x-omitempty"] = False
logging.info(f"set x-omitempty = false on WritableRack.{prop}")
if prop in ["tags", "type", "outer_unit", "weight_unit", "asset_tag", "desc_units"]:
if prop in ["tags", "type", "outer_unit", "weight_unit", "asset_tag", "desc_units", "facility_id"]:
prop_spec["x-omitempty"] = False
logging.info(f"set x-omitempty = false on WritableRack.{prop}")

Expand Down
3 changes: 2 additions & 1 deletion swagger.processed.json
Original file line number Diff line number Diff line change
Expand Up @@ -86029,7 +86029,8 @@
"title": "Facility ID",
"type": "string",
"maxLength": 50,
"x-nullable": true
"x-nullable": true,
"x-omitempty": false
},
"site": {
"title": "Site",
Expand Down

0 comments on commit 6505ee5

Please sign in to comment.