File tree Expand file tree Collapse file tree 5 files changed +63
-4
lines changed
Expand file tree Collapse file tree 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";
2222
2323TypeScript types generated automatically every night and published when there are changes.
2424
25- - Last change: 2025-03-19T01:50:33.485Z
25+ - Last change: 2025-04-10T01:52:55.954Z
2626- 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 {
471471 service : string ;
472472 file ?: string ;
473473 } ;
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+ } ;
474484 external_links ?: string [ ] ;
475485 extra_hosts ?: ExtraHosts ;
476486 gpus ?: Gpus ;
@@ -570,7 +580,7 @@ export interface Service {
570580 volumes ?: (
571581 | string
572582 | {
573- type : string ;
583+ type : "bind" | "volume" | "tmpfs" | "cluster" | "image" ;
574584 source ?: string ;
575585 target ?: string ;
576586 read_only ?: boolean | string ;
@@ -582,13 +592,17 @@ export interface Service {
582592 selinux ?: "z" | "Z" ;
583593 } ;
584594 volume ?: {
595+ labels ?: ListOrDict ;
585596 nocopy ?: boolean | string ;
586597 subpath ?: string ;
587598 } ;
588599 tmpfs ?: {
589600 size ?: number | string ;
590601 mode ?: number | string ;
591602 } ;
603+ image ?: {
604+ subpath ?: string ;
605+ } ;
592606 }
593607 ) [ ] ;
594608 volumes_from ?: string [ ] ;
Original file line number Diff line number Diff line change 1414 " compose-spec"
1515 ],
1616 "x-json-types" : {
17- "lastChangeDate" : " 2025-03-19T01:50:33.485Z "
17+ "lastChangeDate" : " 2025-04-10T01:52:55.954Z "
1818 },
1919 "homepage" : " https://github.com/swordev/json-types/tree/main/packages/compose" ,
2020 "bugs" : {
Original file line number Diff line number Diff line change 474474 }
475475 ]
476476 },
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+ },
477498 "external_links" : {
478499 "type" : " array" ,
479500 "items" : {
832853 ],
833854 "properties" : {
834855 "type" : {
835- "type" : " string"
856+ "type" : " string" ,
857+ "enum" : [
858+ " bind" ,
859+ " volume" ,
860+ " tmpfs" ,
861+ " cluster" ,
862+ " image"
863+ ]
836864 },
837865 "source" : {
838866 "type" : " string"
883911 "volume" : {
884912 "type" : " object" ,
885913 "properties" : {
914+ "labels" : {
915+ "$ref" : " #/definitions/list_or_dict"
916+ },
886917 "nocopy" : {
887918 "type" : [
888919 " boolean" ,
917948 }
918949 },
919950 "additionalProperties" : false
951+ },
952+ "image" : {
953+ "type" : " object" ,
954+ "properties" : {
955+ "subpath" : {
956+ "type" : " string"
957+ }
958+ },
959+ "additionalProperties" : false
920960 }
921961 },
922962 "additionalProperties" : false
You can’t perform that action at this time.
0 commit comments