Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RegEx validation for @pattern decorator #5252

Merged

Conversation

allenjzhang
Copy link
Member

... and throw a warning for invalid regex string value.

close #4128

@azure-sdk
Copy link
Collaborator

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Added RegEx validation for @pattern and will throw warning for invalid RegEx string

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

@allenjzhang allenjzhang added this pull request to the merge queue Dec 4, 2024
Merged via the queue into microsoft:main with commit a226a76 Dec 4, 2024
23 checks passed
@allenjzhang allenjzhang deleted the azhang_ValidatePatternRegEx branch December 4, 2024 22:39
archerzz pushed a commit to archerzz/typespec that referenced this pull request Dec 17, 2024
... and throw a warning for invalid regex string value.

close microsoft#4128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dependency] Adding RegEx validation to @pattern or specific linting rule for RegEx.
3 participants