Skip to content

fix(compiler): reject optional any in IDL validation#3807

Merged
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:optional-any
Jul 1, 2026
Merged

fix(compiler): reject optional any in IDL validation#3807
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:optional-any

Conversation

@BaldDemian

Copy link
Copy Markdown
Contributor

Why?

Reject optional any and any [nullable = true] in IDL to prevent compilation errors in C++ and Rust.

What does this PR do?

  1. Reject optional any and any [nullable = true] in validator.py.
  2. Change testcases and doc accordingly.

Related issues

Closes #3805

AI Contribution Checklist

  • Substantial AI assistance was used in this PR: no

Does this PR introduce any user-facing change?

Yes, users now cannot use optional any and any [nullable = true] in IDL.

  • Does this PR introduce any public API change?
  • Does this PR introduce any binary protocol compatibility change?

Benchmark

N/A.

@chaokunyang chaokunyang merged commit d6bdad3 into apache:main Jul 1, 2026
51 checks passed
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.

optional any generates uncompilable C++ and Rust code

2 participants