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

C#: Ignore invalid enum string values in JSON, when invalid fields are being ignored. #15758

Merged
1 commit merged into from
Feb 8, 2024

Conversation

copybara-service[bot]
Copy link

C#: Ignore invalid enum string values in JSON, when invalid fields are being ignored.

…e being ignored.

PiperOrigin-RevId: 605310357
@copybara-service copybara-service bot closed this pull request by merging all changes into main in 55e50ba Feb 8, 2024
@copybara-service copybara-service bot deleted the test_604923051 branch February 8, 2024 15:30
copybara-service bot pushed a commit that referenced this pull request Mar 26, 2024
…wn_fields is set (#15887)

# Motivation

This PR fixes failing conformance tests for python with name `IgnoreUnknownEnumStringValue`.

The JSON parsing spec was discussed in #7392.

Recent equivalent changes for other languages:
* Swift: apple/swift-protobuf#1345
* C#: #15758

# Changes

- 1st commit is a noop  refactoring to make relevant _ConvertScalarFieldValue invocations localized
- 2nd commit introduces the child exception of `ParseError` named `EnumStringValueParseError` which is suppressed if `ignore_unknown_fields` is set
- 3rd commit updates the conformance test failure lists

Closes #15887

COPYBARA_INTEGRATE_REVIEW=#15887 from noom:anton/7392/fix-python-test fbcc93a
PiperOrigin-RevId: 619288323
elvisdukaj pushed a commit to elvisdukaj/protobuf that referenced this pull request Apr 3, 2024
…wn_fields is set (protocolbuffers#15887)

# Motivation

This PR fixes failing conformance tests for python with name `IgnoreUnknownEnumStringValue`.

The JSON parsing spec was discussed in protocolbuffers#7392.

Recent equivalent changes for other languages:
* Swift: apple/swift-protobuf#1345
* C#: protocolbuffers#15758

# Changes

- 1st commit is a noop  refactoring to make relevant _ConvertScalarFieldValue invocations localized
- 2nd commit introduces the child exception of `ParseError` named `EnumStringValueParseError` which is suppressed if `ignore_unknown_fields` is set
- 3rd commit updates the conformance test failure lists

Closes protocolbuffers#15887

COPYBARA_INTEGRATE_REVIEW=protocolbuffers#15887 from noom:anton/7392/fix-python-test fbcc93a
PiperOrigin-RevId: 619288323
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.

None yet

1 participant