Skip to content

Commit

Permalink
Merge pull request #2483 from SwiftPackageIndex/fix-2407
Browse files Browse the repository at this point in the history
Add a maximum length for the SPI manifest validator
  • Loading branch information
daveverwer authored Jul 4, 2023
2 parents dd002b6 + a3c4bb0 commit d06c71e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ extension ValidateSPIManifest {
.name("manifest"),
.autofocus(true),
.rows(15),
.text(model.manifest)
.text(model.manifest),
.attribute(named: "maxlength", value: "\(SPIManifest.Manifest.maxByteSize)")
)
),
.button(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2 class="trimmed">Validate a Swift Package Index manifest</h2>
<p>Enter the contents of a
<code>.spi.yml</code> file for validation:
</p>
<textarea name="manifest" autofocus rows="15">version: 1
<textarea name="manifest" autofocus rows="15" maxlength="1000">version: 1
builder:
configs:
- documentation_targets: [Target1, Target2]</textarea>
Expand Down

0 comments on commit d06c71e

Please sign in to comment.