Skip to content

Commit 0a6314c

Browse files
feat: update schema
1 parent 6519437 commit 0a6314c

File tree

9 files changed

+62
-44
lines changed

9 files changed

+62
-44
lines changed

.changeset/slow-trains-play.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@json-types/tsconfig": minor
3+
"@json-types/compose": minor
4+
---
5+
6+
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: 2023-11-08T01:15:24.315Z
25+
- Last change: 2023-11-09T01:16:14.959Z
2626
- Source URL: https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json

packages/compose/index.d.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ export interface DefinitionsService {
358358
privileged?: boolean;
359359
secrets?: ServiceConfigOrSecret;
360360
tags?: string[];
361+
ulimits?: Ulimits;
361362
platforms?: string[];
362363
};
363364
blkio_config?: {
@@ -495,18 +496,7 @@ export interface DefinitionsService {
495496
};
496497
tmpfs?: StringOrList;
497498
tty?: boolean;
498-
ulimits?: {
499-
/**
500-
* This interface was referenced by `undefined`'s JSON-Schema definition
501-
* via the `patternProperty` "^[a-z]+$".
502-
*/
503-
[k: string]:
504-
| number
505-
| {
506-
hard: number;
507-
soft: number;
508-
};
509-
};
499+
ulimits?: Ulimits;
510500
user?: string;
511501
uts?: string;
512502
userns_mode?: string;
@@ -535,6 +525,18 @@ export interface DefinitionsService {
535525
volumes_from?: string[];
536526
working_dir?: string;
537527
}
528+
export interface Ulimits {
529+
/**
530+
* This interface was referenced by `Ulimits`'s JSON-Schema definition
531+
* via the `patternProperty` "^[a-z]+$".
532+
*/
533+
[k: string]:
534+
| number
535+
| {
536+
hard: number;
537+
soft: number;
538+
};
539+
}
538540
export interface BlkioLimit {
539541
path?: string;
540542
rate?: number | 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": "2023-11-08T01:15:24.315Z"
17+
"lastChangeDate": "2023-11-09T01:16:14.959Z"
1818
},
1919
"homepage": "https://github.com/swordev/json-types/tree/main/packages/compose",
2020
"bugs": {

packages/compose/schema.json

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@
167167
"type": "string"
168168
}
169169
},
170+
"ulimits": {
171+
"$ref": "#/definitions/ulimits"
172+
},
170173
"platforms": {
171174
"type": "array",
172175
"items": {
@@ -685,32 +688,7 @@
685688
"type": "boolean"
686689
},
687690
"ulimits": {
688-
"type": "object",
689-
"patternProperties": {
690-
"^[a-z]+$": {
691-
"oneOf": [
692-
{
693-
"type": "integer"
694-
},
695-
{
696-
"type": "object",
697-
"properties": {
698-
"hard": {
699-
"type": "integer"
700-
},
701-
"soft": {
702-
"type": "integer"
703-
}
704-
},
705-
"required": [
706-
"soft",
707-
"hard"
708-
],
709-
"additionalProperties": false
710-
}
711-
]
712-
}
713-
}
691+
"$ref": "#/definitions/ulimits"
714692
},
715693
"user": {
716694
"type": "string"
@@ -1485,6 +1463,34 @@
14851463
]
14861464
}
14871465
},
1466+
"ulimits": {
1467+
"type": "object",
1468+
"patternProperties": {
1469+
"^[a-z]+$": {
1470+
"oneOf": [
1471+
{
1472+
"type": "integer"
1473+
},
1474+
{
1475+
"type": "object",
1476+
"properties": {
1477+
"hard": {
1478+
"type": "integer"
1479+
},
1480+
"soft": {
1481+
"type": "integer"
1482+
}
1483+
},
1484+
"required": [
1485+
"soft",
1486+
"hard"
1487+
],
1488+
"additionalProperties": false
1489+
}
1490+
]
1491+
}
1492+
}
1493+
},
14881494
"constraints": {
14891495
"service": {
14901496
"id": "#/definitions/constraints/service",

packages/tsconfig/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/tsconfig/schema.json";
2222

2323
TypeScript types generated automatically every night and published when there are changes.
2424

25-
- Last change: 2023-10-27T01:12:57.987Z
25+
- Last change: 2023-11-09T01:16:15.562Z
2626
- Source URL: https://json.schemastore.org/tsconfig.json

packages/tsconfig/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface CompilerOptions {
8080
/**
8181
* Specify the folder for .tsbuildinfo incremental compilation files.
8282
*/
83-
tsBuildInfoFile?: string;
83+
tsBuildInfoFile?: string | null;
8484
/**
8585
* Include sourcemap files inside the emitted JavaScript.
8686
*/

packages/tsconfig/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"tsconfig"
1212
],
1313
"x-json-types": {
14-
"lastChangeDate": "2023-10-27T01:12:57.987Z"
14+
"lastChangeDate": "2023-11-09T01:16:15.562Z"
1515
},
1616
"homepage": "https://github.com/swordev/json-types/tree/main/packages/tsconfig",
1717
"bugs": {

packages/tsconfig/schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,13 @@
293293
"type": "boolean"
294294
},
295295
"tsBuildInfoFile": {
296+
"$comment": "The value of 'null' is UNDOCUMENTED.",
296297
"description": "Specify the folder for .tsbuildinfo incremental compilation files.",
297298
"default": ".tsbuildinfo",
298-
"type": "string",
299+
"type": [
300+
"string",
301+
"null"
302+
],
299303
"markdownDescription": "Specify the folder for .tsbuildinfo incremental compilation files.\n\nSee more: https://www.typescriptlang.org/tsconfig#tsBuildInfoFile"
300304
},
301305
"inlineSourceMap": {

0 commit comments

Comments
 (0)