Skip to content

Conversation

@jgrantr
Copy link
Contributor

@jgrantr jgrantr commented Oct 21, 2025

  • This allows for having an object that is either a string or a JSON object. Without this, you can't do that cleanly.

Note

Introduces FastParseType.IfString and updates fieldParsers to only set values when the field is a non-JSON string.

  • Parser Types:
    • Add FastParseType.IfString with docs for fields that may be plain strings or JSON.
  • Parsing Logic:
    • Implement IfString handler in fieldParsers to skip setting when value looks like JSON ({ or [), otherwise set normally.

Written by Cursor Bugbot for commit 6210822. This will update automatically on new commits. Configure here.

- This allows for having an object that is either a string or a JSON object. Without this, you can't do that cleanly.
@jgrantr jgrantr requested a review from czirker October 21, 2025 02:12
@ch-snyk-sa
Copy link

ch-snyk-sa commented Oct 21, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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.

4 participants