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

[Feature] add a DisableSingleQuote flag for JsonReader #2909

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

wyTrivail
Copy link
Contributor

What this PR does / why we need it?

We are building a function that relies on fastjson2 but in the meantime we are trying to achieve strict mode on parsing. Single quote should not be allowed in our case.

Summary of your change

This PR adds a Feature in JSONReader to allow customers to disable single quote support, it throws an exception for single quote when this feature is enabled.

Please indicate you've done the following:

  • [Done] Made sure tests are passing and test coverage is added if needed.
  • [Done] Made sure commit message follow the rule of Conventional Commits specification.
  • [Done] Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@CLAassistant
Copy link

CLAassistant commented Aug 30, 2024

CLA assistant check
All committers have signed the CLA.

@addyg
Copy link

addyg commented Aug 30, 2024

+1, would be good to get this flag.

@wenshao wenshao added the enhancement New feature or request label Aug 30, 2024
@wenshao wenshao added this to the 2.0.53 milestone Aug 30, 2024
@wenshao wenshao merged commit 9f631cd into alibaba:main Aug 30, 2024
1 of 5 checks passed
@wyTrivail
Copy link
Contributor Author

may i know why we merged the PR despite CI was failing?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants