Skip to content

Commit

Permalink
chore: updated regex for provider name (#1723)
Browse files Browse the repository at this point in the history
## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

A valid provider name gets invalidated.

## What is the new behavior?

A possible valid provider name gets verified by regex correctly.

## Additional context

`[^a]+` -> This regex will match any char except character `a`
`^a$` -> This regex will match string have single char `a`
`^[a-zA-Z0-9]+$` -> This regex will match any alphanumeric string. `^`
denotes start of string and `$` denotes end of string.

This pull request will address
#1719
  • Loading branch information
hiteshbedre authored Aug 19, 2024
1 parent b2b1123 commit 0658bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ paths:
required: true
schema:
type: string
pattern: "[^a-zA-Z0-9]+"
pattern: "^[a-zA-Z0-9]+$"
- name: scopes
in: query
required: true
Expand Down

0 comments on commit 0658bbe

Please sign in to comment.