Skip to content

Commit 0fe1af9

Browse files
committed
api/docs: remove temporary "full" example for image config (v1.50, v1.51)
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 7bfbb6e commit 0fe1af9

2 files changed

Lines changed: 0 additions & 62 deletions

File tree

api/docs/v1.50.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,37 +1531,6 @@ definitions:
15311531
items:
15321532
type: "string"
15331533
example: ["/bin/sh", "-c"]
1534-
# FIXME(thaJeztah): temporarily using a full example to remove some "omitempty" fields. Remove once the fields are removed.
1535-
example:
1536-
"User": "web:web"
1537-
"ExposedPorts": {
1538-
"80/tcp": {},
1539-
"443/tcp": {}
1540-
}
1541-
"Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
1542-
"Cmd": ["/bin/sh"]
1543-
"Healthcheck": {
1544-
"Test": ["string"],
1545-
"Interval": 0,
1546-
"Timeout": 0,
1547-
"Retries": 0,
1548-
"StartPeriod": 0,
1549-
"StartInterval": 0
1550-
}
1551-
"ArgsEscaped": true
1552-
"Volumes": {
1553-
"/app/data": {},
1554-
"/app/config": {}
1555-
}
1556-
"WorkingDir": "/public/"
1557-
"Entrypoint": []
1558-
"OnBuild": []
1559-
"Labels": {
1560-
"com.example.some-label": "some-value",
1561-
"com.example.some-other-label": "some-other-value"
1562-
}
1563-
"StopSignal": "SIGTERM"
1564-
"Shell": ["/bin/sh", "-c"]
15651534

15661535
NetworkingConfig:
15671536
description: |

api/docs/v1.51.yaml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,37 +1531,6 @@ definitions:
15311531
items:
15321532
type: "string"
15331533
example: ["/bin/sh", "-c"]
1534-
# FIXME(thaJeztah): temporarily using a full example to remove some "omitempty" fields. Remove once the fields are removed.
1535-
example:
1536-
"User": "web:web"
1537-
"ExposedPorts": {
1538-
"80/tcp": {},
1539-
"443/tcp": {}
1540-
}
1541-
"Env": ["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"]
1542-
"Cmd": ["/bin/sh"]
1543-
"Healthcheck": {
1544-
"Test": ["string"],
1545-
"Interval": 0,
1546-
"Timeout": 0,
1547-
"Retries": 0,
1548-
"StartPeriod": 0,
1549-
"StartInterval": 0
1550-
}
1551-
"ArgsEscaped": true
1552-
"Volumes": {
1553-
"/app/data": {},
1554-
"/app/config": {}
1555-
}
1556-
"WorkingDir": "/public/"
1557-
"Entrypoint": []
1558-
"OnBuild": []
1559-
"Labels": {
1560-
"com.example.some-label": "some-value",
1561-
"com.example.some-other-label": "some-other-value"
1562-
}
1563-
"StopSignal": "SIGTERM"
1564-
"Shell": ["/bin/sh", "-c"]
15651534

15661535
NetworkingConfig:
15671536
description: |

0 commit comments

Comments
 (0)