Skip to content

Add JSON conformance test that a single value provided for a repeated field should parse fail. #23003

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

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Aug 5, 2025

Add JSON conformance test that a single value provided for a repeated field should parse fail.

This adds tests for both an object instead of an array for a repeated submessage field, and a number instead of an array for a repeated int32 field.

C++Proto fails both tests. Pure-PHP fails this test only for the numbers case.

@copybara-service copybara-service bot force-pushed the test_791196658 branch 4 times, most recently from 2806d4e to 9da9919 Compare August 5, 2025 16:53
… field should parse fail.

This adds tests for both an object instead of an array for a repeated submessage field, and a number instead of an array for a repeated int32 field.

C++Proto fails both tests. Pure-PHP fails this test only for the numbers case.

PiperOrigin-RevId: 791266294
@copybara-service copybara-service bot merged commit 9806994 into main Aug 5, 2025
@copybara-service copybara-service bot deleted the test_791196658 branch August 5, 2025 17:12
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.

1 participant