Skip to content

Commit 5a2a226

Browse files
feat: update schema
1 parent 6f81db2 commit 5a2a226

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

.changeset/five-otters-drum.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-07-01T02:22:29.986Z
25+
- Last change: 2025-07-22T02:17:59.097Z
2626
- Source URL: https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json

packages/compose/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,10 @@ export interface Service {
15301530
* Environment variable set to AI model endpoint.
15311531
*/
15321532
endpoint_var?: string;
1533+
/**
1534+
* Environment variable set to AI model name.
1535+
*/
1536+
model_var?: string;
15331537
};
15341538
};
15351539
/**

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-07-01T02:22:29.986Z"
17+
"lastChangeDate": "2025-07-22T02:17:59.097Z"
1818
},
1919
"homepage": "https://github.com/swordev/json-types/tree/main/packages/compose",
2020
"bugs": {

packages/compose/schema.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@
318318
},
319319
"container_name": {
320320
"type": "string",
321-
"description": "Specify a custom container name, rather than a generated default name."
321+
"description": "Specify a custom container name, rather than a generated default name.",
322+
"pattern": "[a-zA-Z0-9][a-zA-Z0-9_.-]+"
322323
},
323324
"cpu_count": {
324325
"oneOf": [
@@ -743,6 +744,10 @@
743744
"endpoint_var": {
744745
"type": "string",
745746
"description": "Environment variable set to AI model endpoint."
747+
},
748+
"model_var": {
749+
"type": "string",
750+
"description": "Environment variable set to AI model name."
746751
}
747752
},
748753
"additionalProperties": false

0 commit comments

Comments
 (0)