Skip to content

Commit 7bfbb6e

Browse files
committed
api/swagger: remove temporary "full" example for image config
This example was added in 5e0e34f so that the deprecated fields could be omitted from the example. Those fields were removed from the swagger in 4dc961d, but the temporary example was not removed. This patch removes the example, in favor of the per-field examples, which were already in place. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 4e23f5f commit 7bfbb6e

2 files changed

Lines changed: 0 additions & 62 deletions

File tree

api/docs/v1.52.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,37 +1543,6 @@ definitions:
15431543
items:
15441544
type: "string"
15451545
example: ["/bin/sh", "-c"]
1546-
# FIXME(thaJeztah): temporarily using a full example to remove some "omitempty" fields. Remove once the fields are removed.
1547-
example:
1548-
"User": "web:web"
1549-
"ExposedPorts": {
1550-
"80/tcp": {},
1551-
"443/tcp": {}
1552-
}
1553-
"Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
1554-
"Cmd": ["/bin/sh"]
1555-
"Healthcheck": {
1556-
"Test": ["string"],
1557-
"Interval": 0,
1558-
"Timeout": 0,
1559-
"Retries": 0,
1560-
"StartPeriod": 0,
1561-
"StartInterval": 0
1562-
}
1563-
"ArgsEscaped": true
1564-
"Volumes": {
1565-
"/app/data": {},
1566-
"/app/config": {}
1567-
}
1568-
"WorkingDir": "/public/"
1569-
"Entrypoint": []
1570-
"OnBuild": []
1571-
"Labels": {
1572-
"com.example.some-label": "some-value",
1573-
"com.example.some-other-label": "some-other-value"
1574-
}
1575-
"StopSignal": "SIGTERM"
1576-
"Shell": ["/bin/sh", "-c"]
15771546

15781547
NetworkingConfig:
15791548
description: |

api/swagger.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,37 +1543,6 @@ definitions:
15431543
items:
15441544
type: "string"
15451545
example: ["/bin/sh", "-c"]
1546-
# FIXME(thaJeztah): temporarily using a full example to remove some "omitempty" fields. Remove once the fields are removed.
1547-
example:
1548-
"User": "web:web"
1549-
"ExposedPorts": {
1550-
"80/tcp": {},
1551-
"443/tcp": {}
1552-
}
1553-
"Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
1554-
"Cmd": ["/bin/sh"]
1555-
"Healthcheck": {
1556-
"Test": ["string"],
1557-
"Interval": 0,
1558-
"Timeout": 0,
1559-
"Retries": 0,
1560-
"StartPeriod": 0,
1561-
"StartInterval": 0
1562-
}
1563-
"ArgsEscaped": true
1564-
"Volumes": {
1565-
"/app/data": {},
1566-
"/app/config": {}
1567-
}
1568-
"WorkingDir": "/public/"
1569-
"Entrypoint": []
1570-
"OnBuild": []
1571-
"Labels": {
1572-
"com.example.some-label": "some-value",
1573-
"com.example.some-other-label": "some-other-value"
1574-
}
1575-
"StopSignal": "SIGTERM"
1576-
"Shell": ["/bin/sh", "-c"]
15771546

15781547
NetworkingConfig:
15791548
description: |

0 commit comments

Comments
 (0)