Skip to content

fix: accept scalar values in v2 visibility rules#293

Open
Maroutis wants to merge 1 commit intomainfrom
fix/v2-visibility-scalar-rules
Open

fix: accept scalar values in v2 visibility rules#293
Maroutis wants to merge 1 commit intomainfrom
fix/v2-visibility-scalar-rules

Conversation

@Maroutis
Copy link
Copy Markdown
Collaborator

Summary

  • allow mustBe and ifNotIn visibility conditions to accept scalar values like numbers, booleans, and null
  • align both input and resolved v2 visibility models with the schema instead of forcing string-only values
  • add regression fixtures that cover numeric and boolean visibility conditions during input-to-resolved conversion

Test plan

  • PYTHONPATH=src python3 - <<'PY' ... field_with_visibility_conditions fixture conversion ... PY

Supersedes #290 with a branch that lives directly on LedgerHQ/python-erc7730, so normal upstream CI can run.

Made with Cursor

Align the v2 visibility models with the schema so mustBe/ifNotIn accept numbers and booleans instead of rejecting valid descriptors during lint resolution.

Made-with: Cursor
@Maroutis Maroutis requested a review from a team as a code owner March 27, 2026 10:21
@Maroutis Maroutis enabled auto-merge (squash) March 27, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant