File tree 5 files changed +63
-4
lines changed
5 files changed +63
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @json-types/compose " : minor
3
+ ---
4
+
5
+ Update schema
Original file line number Diff line number Diff line change @@ -22,5 +22,5 @@ import schema from "@json-types/compose/schema.json";
22
22
23
23
TypeScript types generated automatically every night and published when there are changes.
24
24
25
- - Last change: 2025-03-19T01:50:33.485Z
25
+ - Last change: 2025-04-10T01:52:55.954Z
26
26
- Source URL: https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json
Original file line number Diff line number Diff line change @@ -471,6 +471,16 @@ export interface Service {
471
471
service : string ;
472
472
file ?: string ;
473
473
} ;
474
+ provider ?: {
475
+ type ?: string ;
476
+ options ?: {
477
+ /**
478
+ * This interface was referenced by `undefined`'s JSON-Schema definition
479
+ * via the `patternProperty` "^.+$".
480
+ */
481
+ [ k : string ] : string | number | null ;
482
+ } ;
483
+ } ;
474
484
external_links ?: string [ ] ;
475
485
extra_hosts ?: ExtraHosts ;
476
486
gpus ?: Gpus ;
@@ -570,7 +580,7 @@ export interface Service {
570
580
volumes ?: (
571
581
| string
572
582
| {
573
- type : string ;
583
+ type : "bind" | "volume" | "tmpfs" | "cluster" | "image" ;
574
584
source ?: string ;
575
585
target ?: string ;
576
586
read_only ?: boolean | string ;
@@ -582,13 +592,17 @@ export interface Service {
582
592
selinux ?: "z" | "Z" ;
583
593
} ;
584
594
volume ?: {
595
+ labels ?: ListOrDict ;
585
596
nocopy ?: boolean | string ;
586
597
subpath ?: string ;
587
598
} ;
588
599
tmpfs ?: {
589
600
size ?: number | string ;
590
601
mode ?: number | string ;
591
602
} ;
603
+ image ?: {
604
+ subpath ?: string ;
605
+ } ;
592
606
}
593
607
) [ ] ;
594
608
volumes_from ?: string [ ] ;
Original file line number Diff line number Diff line change 14
14
" compose-spec"
15
15
],
16
16
"x-json-types" : {
17
- "lastChangeDate" : " 2025-03-19T01:50:33.485Z "
17
+ "lastChangeDate" : " 2025-04-10T01:52:55.954Z "
18
18
},
19
19
"homepage" : " https://github.com/swordev/json-types/tree/main/packages/compose" ,
20
20
"bugs" : {
Original file line number Diff line number Diff line change 474
474
}
475
475
]
476
476
},
477
+ "provider" : {
478
+ "type" : " object" ,
479
+ "properties" : {
480
+ "type" : {
481
+ "type" : " string"
482
+ },
483
+ "options" : {
484
+ "type" : " object" ,
485
+ "patternProperties" : {
486
+ "^.+$" : {
487
+ "type" : [
488
+ " string" ,
489
+ " number" ,
490
+ " null"
491
+ ]
492
+ }
493
+ }
494
+ }
495
+ },
496
+ "additionalProperties" : false
497
+ },
477
498
"external_links" : {
478
499
"type" : " array" ,
479
500
"items" : {
832
853
],
833
854
"properties" : {
834
855
"type" : {
835
- "type" : " string"
856
+ "type" : " string" ,
857
+ "enum" : [
858
+ " bind" ,
859
+ " volume" ,
860
+ " tmpfs" ,
861
+ " cluster" ,
862
+ " image"
863
+ ]
836
864
},
837
865
"source" : {
838
866
"type" : " string"
883
911
"volume" : {
884
912
"type" : " object" ,
885
913
"properties" : {
914
+ "labels" : {
915
+ "$ref" : " #/definitions/list_or_dict"
916
+ },
886
917
"nocopy" : {
887
918
"type" : [
888
919
" boolean" ,
917
948
}
918
949
},
919
950
"additionalProperties" : false
951
+ },
952
+ "image" : {
953
+ "type" : " object" ,
954
+ "properties" : {
955
+ "subpath" : {
956
+ "type" : " string"
957
+ }
958
+ },
959
+ "additionalProperties" : false
920
960
}
921
961
},
922
962
"additionalProperties" : false
You can’t perform that action at this time.
0 commit comments