webdriverio / webdriverio/devtools

Generate contract types, not just scope names

Open
#299 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.