Skip to content

json: filter open enum JSON values in no_std - #486

Open
fallintoplace wants to merge 1 commit into
anthropics:mainfrom
fallintoplace:fix/nostd-open-enum-json-filtering
Open

fallintoplace wants to merge 1 commit into
anthropics:mainfrom
fallintoplace:fix/nostd-open-enum-json-filtering

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Apply ignore_unknown_enum_values in no_std JSON parsing for optional, repeated, and map open-enum fields.
  • Filter unknown enum names while keeping valid unknown numeric values as EnumValue::Unknown.

Why

  • Give no_std builds the same lenient behavior as std across these field shapes.

Implementation

  • Use the global parse option to filter failed enum values.
  • Add no_std coverage and include it in CI.

Benchmark

Not applicable.

@github-actions

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@fallintoplace fallintoplace changed the title fix(buffa): filter open enum JSON values in no_std json: filter open enum JSON values in no_std Sep 25, 2026

This branch has not been deployed

No deployments
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