Skip to content

Conversation

@kieran-ryan
Copy link
Contributor

@kieran-ryan kieran-ryan commented Jan 1, 2026

Context

Establish type hints on common data models towards #878.

  • Standardised internal types to string-based enums (str, Enum)
    • Status from object
    • LinkType from object
    • LabelType from str
    • ParameterMode from Enum
    • Updated ParameterMode.DEFAULT from None to "default" - matching allure-js
    • Updated ALLURE_UNIQUE_LABELS to use LabelType values
  • Introduced missing Stage enum - declaring expected values
  • Corrected TestResult usage to initialise with required UUID

Withholding removing None from required fields - being a breaking change for any improper initialisation - reserving for more fundamental model updates.

@kieran-ryan kieran-ryan force-pushed the commons-models-types branch 4 times, most recently from 8e48ad2 to b162be9 Compare January 1, 2026 20:03
@kieran-ryan kieran-ryan changed the title Data model type hints Data models type hints Jan 1, 2026
@kieran-ryan kieran-ryan force-pushed the commons-models-types branch 4 times, most recently from da8a27c to 9f10548 Compare January 1, 2026 21:32
- Type hints on common data models
- Standardised internal types to string-based enums
  - Updated `ParameterMode.DEFAULT` from `None` to `"default"`
  - Updated `ALLURE_UNIQUE_LABELS` to use `LabelType` values
- Introduced missing 'Stage' enum
- Corrected `TestResult` to initialise with required UUID
@kieran-ryan kieran-ryan force-pushed the commons-models-types branch from 9f10548 to 9fd83bd Compare January 1, 2026 22:17
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