Skip to content

Commit

Permalink
PR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Gamache committed May 21, 2024
1 parent 09ba444 commit be4d11d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .spectral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ rules:
functionOptions:
notMatch: 'string'

schema-name-length:
schema-name-length-must-be-short:
description: "Schema name must not be too long to support client generation. Current limitation come from the Ruby using tar which have a limit of 100 characters."
given: $.components.schemas[*]~
then:
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ $tests = @(
@{ rule = "schema-ids-must-have-alphanumeric-characters-only"; expectError = $true; filename = "schema-ids-must-have-alphanumeric-characters-only-invalid.yaml" },
@{ rule = "schema-object-must-have-a-type"; expectError = $false; filename = "schema-object-must-have-a-type-valid.yaml" },
@{ rule = "schema-object-must-have-a-type"; expectError = $true; filename = "schema-object-must-have-a-type-invalid.yaml" },
@{ rule = "schema-name-length"; expectError = $false; filename = "schema-name-length-valid.yaml" },
@{ rule = "schema-name-length"; expectError = $true; filename = "schema-name-length-invalid.yaml" }
@{ rule = "schema-name-length-must-be-short"; expectError = $false; filename = "schema-name-length-must-be-short-valid.yaml" },
@{ rule = "schema-name-length-must-be-short"; expectError = $true; filename = "schema-name-length-must-be-short-invalid.yaml" }
)

$fileCount = Get-ChildItem (Join-Path $PSScriptRoot "TestSpecs") | Measure-Object | Select-Object -ExpandProperty Count
Expand Down

0 comments on commit be4d11d

Please sign in to comment.