Skip to content

Commit b453ff4

Browse files
committed
docker engine api v1.48
1 parent 13e00bf commit b453ff4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

generator/generator.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { fetch } from "undici";
88

99
import { applyFixes } from "./fixes.mjs";
1010

11-
const SCHEMA_URL = "https://docs.docker.com/reference/api/engine/version/v1.47.yaml"
11+
const SCHEMA_URL = "https://docs.docker.com/reference/api/engine/version/v1.48.yaml"
1212

1313
async function main() {
1414

@@ -22,7 +22,13 @@ async function main() {
2222
for (const path in schema.paths) {
2323
for (const method in schema.paths[path]) {
2424
const props = schema.paths[path][method];
25-
const { parameters, responses, tags, operationId } = props;
25+
const { parameters, responses, operationId } = props;
26+
let { tags } = props;
27+
28+
// TODO: 1.48 removed the tag from image export for some reason...
29+
if (tags === undefined && operationId === "ImageGet") {
30+
tags = ["Image"]
31+
}
2632

2733
if (tags.length > 1) {
2834
throw Error(`multiple tags in ${path}:${method}`);

0 commit comments

Comments
 (0)