Skip to content

Commit

Permalink
Schema!: Make listen_port int32 again
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKoestler committed Dec 18, 2023
1 parent 6c1dad9 commit 7de31e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions openapi/hcloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"contact": {
"url": "https://docs.hetzner.cloud/"
},
"version": "d4b9ef2-dirty"
"version": "6c1dad9-dirty"
},
"servers": [
{
Expand Down Expand Up @@ -2242,7 +2242,6 @@
"listen_port": {
"description": "The listen port of the service you want to delete",
"example": 4711,
"format": "int64",
"type": "integer"
}
},
Expand Down
5 changes: 5 additions & 0 deletions resources/document_transformations.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,10 @@
"set": {
"title": "Server ID"
}
},

{
"path": ["components", "schemas", "delete_service_request", "properties", "listen_port"],
"remove": ["format"]
}
]
1 change: 0 additions & 1 deletion src/document/transformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ function applyTransformation(

if (transformation.remove !== undefined) {
transformation.remove.forEach((name) => {
console.log(transformation.path, name);
objectPath.del(document, transformation.path.concat([name]));
});
}
Expand Down

0 comments on commit 7de31e1

Please sign in to comment.