Skip to content

Support defining msgspec schemas as dicts#929

Draft
ahal wants to merge 10 commits intotaskcluster:mainfrom
ahal:ahal/push-xpqpvswlroun
Draft

Support defining msgspec schemas as dicts#929
ahal wants to merge 10 commits intotaskcluster:mainfrom
ahal:ahal/push-xpqpvswlroun

Conversation

@ahal
Copy link
Copy Markdown
Collaborator

@ahal ahal commented Apr 8, 2026

Msgspec is awesome, but the new class based method of defining schemas is clunky and more importantly, doesn't support kebab case (dashes in the key name).

This means users need to mentally translate _ in the schema to - in the task. It's also not possible to have a mix of underscores and dashes (which is probably a good thing.. but sometimes you want to forward subsections of a task definition to systems out of your control).

@ahal ahal self-assigned this Apr 8, 2026
@ahal
Copy link
Copy Markdown
Collaborator Author

ahal commented Apr 8, 2026

This isn't ready for review yet, but posting it for early feedback as I need to focus on other things for now.

# Information for indexing this build so its artifacts can be discovered.
"index": (IndexSchema, None),
# Whether this image should be cached based on inputs.
"cache": (bool, None),
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: these should be using Optional

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