Skip to content

Conversation

@IonBazan
Copy link
Contributor

@IonBazan IonBazan commented Oct 28, 2022

This PR adds json_validate() polyfill - see: https://wiki.php.net/rfc/json_validate.
Tests examples were taken from the php-src implementation.

Test failures are unrelated.
Float tests are fixed in #417, remaining PHP 8.2 mbstring test can be sorted out separately.

@IonBazan IonBazan requested review from Ayesh, OskarStark and derrabus and removed request for Ayesh, OskarStark and derrabus October 31, 2022 15:11
Copy link
Contributor

@Ayesh Ayesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, looks good to me.
I'm not sure what's the best way to tackle the tests that fail because of the lack of precision in the float value assertions.

Thank you.

@IonBazan IonBazan force-pushed the feature/json_validate branch from cc89c32 to 7682b78 Compare November 1, 2022 21:52
@IonBazan IonBazan requested a review from GromNaN November 1, 2022 21:52
@IonBazan IonBazan force-pushed the feature/json_validate branch 2 times, most recently from e2bd94b to dd84daf Compare November 2, 2022 10:24
@nicolas-grekas
Copy link
Member

Thank you @IonBazan.

@IonBazan IonBazan deleted the feature/json_validate branch November 3, 2022 16:04
fabpot added a commit to symfony/symfony that referenced this pull request Dec 2, 2022
…derrabus)

This PR was merged into the 6.3 branch.

Discussion
----------

[HttpFoundation][Validator] Leverage `json_validate()`

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | Not needed

Let's make use of symfony/polyfill#416.

Commits
-------

d2b6b49 [HttpFoundation][Validator] Leverage json_validate()
symfony-splitter pushed a commit to symfony/validator that referenced this pull request Dec 2, 2022
…derrabus)

This PR was merged into the 6.3 branch.

Discussion
----------

[HttpFoundation][Validator] Leverage `json_validate()`

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | Not needed

Let's make use of symfony/polyfill#416.

Commits
-------

d2b6b49b76 [HttpFoundation][Validator] Leverage json_validate()
symfony-splitter pushed a commit to symfony/http-foundation that referenced this pull request Dec 2, 2022
…derrabus)

This PR was merged into the 6.3 branch.

Discussion
----------

[HttpFoundation][Validator] Leverage `json_validate()`

| Q             | A
| ------------- | ---
| Branch?       | 6.3
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | Not needed

Let's make use of symfony/polyfill#416.

Commits
-------

d2b6b49b76 [HttpFoundation][Validator] Leverage json_validate()
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.

7 participants