Skip to content

Commit da3300c

Browse files
author
Zach Carpenter
authored
Update Installer Node Limit (#188)
1 parent c6951d4 commit da3300c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

documentation/WinGet-1.0.0.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ components:
11911191
type: array
11921192
items:
11931193
$ref: '#/components/schemas/InstallerSchema'
1194+
maxItems: 1024
11941195

11951196
# Manifest Search Version Response Schema
11961197
ManifestSearchVersionSchema:
@@ -1343,6 +1344,7 @@ components:
13431344
type: array
13441345
items:
13451346
$ref: '#/components/schemas/InstallerSchema'
1347+
maxItems: 1024
13461348

13471349
InstallerSingleResponseSchema:
13481350
description: Installer Response Schema

documentation/WinGet-1.1.0.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@ components:
14681468
type: array
14691469
items:
14701470
$ref: '#/components/schemas/InstallerSchema'
1471+
maxItems: 1024
14711472

14721473
# Manifest Search Version Response Schema
14731474
ManifestSearchVersionSchema:
@@ -1641,6 +1642,7 @@ components:
16411642
type: array
16421643
items:
16431644
$ref: '#/components/schemas/InstallerSchema'
1645+
maxItems: 1024
16441646

16451647
InstallerSingleResponseSchema:
16461648
description: Installer Response Schema

documentation/WinGet-1.4.0.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ components:
16451645
type: array
16461646
items:
16471647
$ref: '#/components/schemas/InstallerSchema'
1648+
maxItems: 1024
16481649

16491650
# Manifest Search Version Response Schema
16501651
ManifestSearchVersionSchema:
@@ -1830,6 +1831,7 @@ components:
18301831
type: array
18311832
items:
18321833
$ref: '#/components/schemas/InstallerSchema'
1834+
maxItems: 1024
18331835

18341836
InstallerSingleResponseSchema:
18351837
description: Installer Response Schema

src/WinGet.RestSource.Utils/Models/Schemas/Installers.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class Installers : ApiArray<Installer>
2222
{
2323
private const bool Nullable = true;
2424
private const bool Unique = true;
25+
private const uint Max = 1024;
2526

2627
/// <summary>
2728
/// Initializes a new instance of the <see cref="Installers"/> class.
@@ -130,6 +131,7 @@ private void SetDefaults()
130131
this.APIArrayName = nameof(Installers);
131132
this.AllowNull = Nullable;
132133
this.UniqueItems = Unique;
134+
this.MaxItems = Max;
133135
}
134136

135137
private bool InstallerExists(string installerIdentifier)

0 commit comments

Comments
 (0)