webdriverio / webdriverio/devtools
Generate contract types, not just scope names
Open
@vishnuv688 is already working on this.
Since Aug 12, 2026.
capture-architecture
enhancement
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 2
- Avg merge
- 1d 29m
- Merged PRs (30d)
- 23
Description
Part of #278
gen_contract.py already generates scope names and the contract
version into _contract.py with a CI drift guard. frames.py and types.py
still hand-mirror about 308 lines of shared's field-level types, which is a drift
class waiting to happen and would triple with Java.
Acceptance criteria
Python payload types are generated from one schema. The
drift guard covers fields, not only scope names. frames.py shrinks to builders
over generated types.
Size: M. Depends on B1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.