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 a test for JSON parsing #71

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

ForNeVeR
Copy link
Contributor

@ForNeVeR ForNeVeR commented Feb 6, 2024

This adds a test I created while investigating codingteam/emulsion#190.

To summarize: there are no known DoS issues with the latest version of Funogram.

We should consider migrating away from Utf8Json, though, and this test may serve as one of the checks we'll perform before migration to another JSON library.

@ForNeVeR ForNeVeR changed the title Bugfix/broken escaping Add a test for JSON parsing Feb 6, 2024
@Dolfik1 Dolfik1 merged commit 5919f2e into Dolfik1:master Feb 6, 2024
1 check passed
@Dolfik1
Copy link
Owner

Dolfik1 commented Feb 6, 2024

I replaced Utf8Json with System.Text.Json in #72. All tests passed, but it cannot guarantee stability in production, because serialization in Telegram Bot API a bit complex for strongly typed languages. I would like to write unit tests code generator, but it may take a while.

@ForNeVeR
Copy link
Contributor Author

ForNeVeR commented Feb 6, 2024

If you build a preview version of the packages, I guess I can try integrating them in some of my bots, to see if they will still work.

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.

2 participants