Skip to content

PANA-5615: Fix permanent_id property ordering for Android compatibility#356

Merged
gonzalezreal merged 1 commit into
masterfrom
gonzalezreal/PANA-5615/permanent-id-property-ordering
Feb 24, 2026
Merged

PANA-5615: Fix permanent_id property ordering for Android compatibility#356
gonzalezreal merged 1 commit into
masterfrom
gonzalezreal/PANA-5615/permanent-id-property-ordering

Conversation

@gonzalezreal

Copy link
Copy Markdown
Contributor

Summary

Fixes the positional ordering of permanentId/permanent_id in the JSON schemas to ensure Android code generation produces backwards-compatible constructor signatures.

This change is safe since permanentId/permanent_id is not yet used in production by any platform.

Changes

  • Moved permanent_id to the end of the target properties in action-schema.json (after width and height)
  • Removed permanentId from _common-wireframe-schema.json and added it as the last property in each leaf wireframe schema:
    • ShapeWireframe
    • TextWireframe
    • ImageWireframe
    • PlaceholderWireframe
    • WebviewWireframe

Context

Android uses the schema JSON positionally when generating constructor signatures. Because wireframe schemas use allOf to extend from common schemas, having permanentId in _common-wireframe-schema.json caused it to appear in the middle of the generated argument lists, breaking backwards compatibility.

Moving it to the end of each leaf node ensures it's always last in the generated signatures.

@gonzalezreal
gonzalezreal requested review from a team as code owners February 23, 2026 14:41
@gonzalezreal
gonzalezreal merged commit 79d6285 into master Feb 24, 2026
12 checks passed
@gonzalezreal
gonzalezreal deleted the gonzalezreal/PANA-5615/permanent-id-property-ordering branch February 24, 2026 10:56
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.

3 participants