Skip to content

Commit

Permalink
fix: Remove obsolete preprocess step
Browse files Browse the repository at this point in the history
  • Loading branch information
fbreckle committed Mar 26, 2023
1 parent 6505ee5 commit 9a27bb3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,18 +131,6 @@
}
logging.info(f"Added schema for 200 response of /status/ get")

# NOTE: below fixed upstream
# change model IPAddress's assigned_object property from string to object otherwise it fails to unmarshall
data["definitions"]["IPAddress"]["properties"]["assigned_object"] = {
"title": "Assigned object",
"type": "object",
"readOnly": True,
}
logging.info(
f"Fix 'error: json: cannot unmarshal number into Go struct field IPAddress.assigned_object of type \
string' when creating available-ips"
)

# Change model returned by paths /available-ips/ from AvailableIP to IPAddress.
data["paths"]["/ipam/ip-ranges/{id}/available-ips/"]["post"]["responses"]["201"][
"schema"
Expand Down

0 comments on commit 9a27bb3

Please sign in to comment.