Skip to content

Commit 603babf

Browse files
feat: update schema
1 parent 1bc65f1 commit 603babf

File tree

5 files changed

+63
-4
lines changed

5 files changed

+63
-4
lines changed

.changeset/grumpy-eyes-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@json-types/compose": minor
3+
---
4+
5+
Update schema

packages/compose/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ import schema from "@json-types/compose/schema.json";
2222

2323
TypeScript 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

packages/compose/index.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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[];

packages/compose/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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": {

packages/compose/schema.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,27 @@
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": {
@@ -832,7 +853,14 @@
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"
@@ -883,6 +911,9 @@
883911
"volume": {
884912
"type": "object",
885913
"properties": {
914+
"labels": {
915+
"$ref": "#/definitions/list_or_dict"
916+
},
886917
"nocopy": {
887918
"type": [
888919
"boolean",
@@ -917,6 +948,15 @@
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

0 commit comments

Comments
 (0)