File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { fetch } from "undici";
88
99import { 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
1313async 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 } ` ) ;
You can’t perform that action at this time.
0 commit comments