Skip to content

Allow null property GUI values#177

Merged
btoron merged 1 commit into
btoron:masterfrom
rzigante:fix-property-null-gui
Jun 1, 2026
Merged

Allow null property GUI values#177
btoron merged 1 commit into
btoron:masterfrom
rzigante:fix-property-null-gui

Conversation

@rzigante
Copy link
Copy Markdown
Contributor

@rzigante rzigante commented Jun 1, 2026

Summary

  • allow explicit gui: null payloads to validate as omitted GUI values
  • add a regression test for Property.model_validate with gui set to None

Fixes #169

Verification

  • .venv/bin/python -m pytest tests/metadata/test_properties.py::test_property_accepts_explicit_null_gui -q
  • .venv/bin/python -m ruff check --force-exclude ofsc/models/metadata.py tests/metadata/test_properties.py
  • .venv/bin/python -m ruff check ofsc/models/metadata.py

@btoron btoron added the release:patch Triggers patch version tag on merge label Jun 1, 2026
@btoron btoron merged commit 0ab466e into btoron:master Jun 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Triggers patch version tag on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Property.gui_match validator rejects explicit gui: null, breaking parse of real tenant responses

2 participants