Skip to content

Commit

Permalink
Update Installer Node Limit (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Carpenter authored Nov 29, 2022
1 parent c6951d4 commit da3300c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/WinGet-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

# Manifest Search Version Response Schema
ManifestSearchVersionSchema:
Expand Down Expand Up @@ -1343,6 +1344,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

InstallerSingleResponseSchema:
description: Installer Response Schema
Expand Down
2 changes: 2 additions & 0 deletions documentation/WinGet-1.1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

# Manifest Search Version Response Schema
ManifestSearchVersionSchema:
Expand Down Expand Up @@ -1641,6 +1642,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

InstallerSingleResponseSchema:
description: Installer Response Schema
Expand Down
2 changes: 2 additions & 0 deletions documentation/WinGet-1.4.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1645,6 +1645,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

# Manifest Search Version Response Schema
ManifestSearchVersionSchema:
Expand Down Expand Up @@ -1830,6 +1831,7 @@ components:
type: array
items:
$ref: '#/components/schemas/InstallerSchema'
maxItems: 1024

InstallerSingleResponseSchema:
description: Installer Response Schema
Expand Down
2 changes: 2 additions & 0 deletions src/WinGet.RestSource.Utils/Models/Schemas/Installers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class Installers : ApiArray<Installer>
{
private const bool Nullable = true;
private const bool Unique = true;
private const uint Max = 1024;

/// <summary>
/// Initializes a new instance of the <see cref="Installers"/> class.
Expand Down Expand Up @@ -130,6 +131,7 @@ private void SetDefaults()
this.APIArrayName = nameof(Installers);
this.AllowNull = Nullable;
this.UniqueItems = Unique;
this.MaxItems = Max;
}

private bool InstallerExists(string installerIdentifier)
Expand Down

0 comments on commit da3300c

Please sign in to comment.