Skip to content

Add Tier 1 Pydantic models for tasks, runs, and schedules - #6

Merged
mehmetkr merged 1 commit into
mainfrom
item-6-tier1-models
Nov 26, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
item-6-tier1-models

Conversation

@mehmetkr

Copy link
Copy Markdown
Owner

Summary

  • Generate and hand-tune 24 Tier 1 Pydantic v2 models from the OpenAPI spec (ADR-003) across 4 modules: shared, tasks, runs, schedules
  • All models inherit from _ApiModel base with populate_by_name=True so users can construct with either snake_case or camelCase field names
  • Type aliases for simple types (RunTag, RunTags, TTL, Delay, Machine, TriggerFunction), Literal unions for enums, Field constraints replacing conint/constr
  • Reproducible generation script, TCH lint exemption for Pydantic runtime annotations, .gitattributes for cross-platform line endings

Test plan

  • pyright strict: 0 errors
  • mypy strict: 0 issues
  • ruff: all checks passed
  • pytest: 2/2 tests pass
  • Design adversarial audit: PASS (all 24 schemas verified field-by-field against spec)
  • Implementation adversarial audit: PASS (round 2, all 43 docstrings and 7 dimensions clean)

@mehmetkr
mehmetkr merged commit 97d4838 into main Nov 26, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the item-6-tier1-models branch November 26, 2026 19:30
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