Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: djmadeira <djmadeira@me.com>
  • Loading branch information
djmadeira committed May 20, 2024
1 parent 7d06126 commit ef2d4dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/tests/linter/NamespaceFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ test('validate_parameter_refs()', () => {
expect(validator.validate_parameter_refs()).toEqual([
{
file: 'namespaces/invalid_components.yaml',
location: '#/components/parameters/#indices.create::query.ExpandWildcards',
message: "Invalid parameter name 'ExpandWildcards'. A parameter's name can only contain lower-cased alphanumerics, underscores, and periods."
location: '#/components/parameters/#indices.create::query.ExpandWildcard$',
message: "Invalid parameter name 'ExpandWildcard$'. A parameter's name can only contain alphanumerics, underscores, and periods."
},
{
file: 'namespaces/invalid_components.yaml',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ paths:
$ref: '#/components/responses/indices.create@200'
parameters:
- $ref: '#/components/parameters/indices.create::path.index'
- $ref: '#/components/parameters/indices.create::query.ExpandWildcards'
- $ref: '#/components/parameters/indices.create::query.ExpandWildcard$'
- $ref: '#/components/parameters/indices.create::query.pretty'

components:
Expand All @@ -16,9 +16,9 @@ components:
indices.create::path.index:
name: index
in: path
indices.create::query.ExpandWildcards:
name: ExpandWildcards
indices.create::query.ExpandWildcard$:
name: ExpandWildcard$
in: query
indices.create::query.h:
name: v
in: query
in: query

0 comments on commit ef2d4dd

Please sign in to comment.