-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add base64url #4085
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 base64url #4085
Conversation
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis pull request adds comprehensive support for Base64 URL encoding throughout the codebase. It extends type definitions, regex validations, and schema constructors within core modules, updates documentation and tests, and streamlines some auxiliary functions. Changes also include consolidating type parameters in mini schemas and removing unused properties from various generate calls. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ZodString
participant ZodBase64URL
participant Core
participant RegexEngine
Client->>ZodString: Invoke base64url()
ZodString->>ZodBase64URL: Create Base64 URL instance
ZodBase64URL->>Core: Initialize with base64url regex & settings
Core->>RegexEngine: Validate string using Base64 URL RegExp
RegexEngine-->>Core: Return validation result
Core-->>ZodBase64URL: Pass validation outcome
ZodBase64URL-->>ZodString: Return validated instance
ZodString-->>Client: Provide final validated schema
Possibly Related PRs
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
088941f
to
106bb16
Compare
@coderabbitai full review |
✅ Actions performedFull review triggered. |
Summary by CodeRabbit
New Features
Documentation
Tests