[ENHANCEMENT](system) Support RootModel entry points end to end

Open
#864 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Read the RootModel implementation and the linked sub-issues that this work depends on; the payload does not name files or tests. Trace entry-point discovery and tags, codegen's Markdown and PySpark output, and the validation union, then check scalar and container RootModels remain documented aliases. Done when model and discriminated-union RootModels behave like their bare equivalents across those paths and the Segment JSON Schema includes its description.

Written by the indexing model from the issue text.

Description

A RootModel entry point names a feature the way a bare type alias cannot: it has a class name and a docstring, and its JSON Schema has a title and a description. A RootModel over a discriminated union or a model should behave like the bare union or model everywhere an entry point is read: discovery and its tags, codegen's Markdown and PySpark output, and the validation union. A RootModel over a scalar or container stays a documented alias.

Segment is the first candidate: written as class Segment(RootModel[...]) it gains the description its Segment.__doc__ assignment never produced in the JSON Schema. It moves once every sub-issue below that it depends on is closed.

Dominant language
Python
Stars
219
Forks
20
Avg merge
1d 21h
Merged PRs (30d)
37

Getting set up

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.

More from OvertureMaps/schema

All issues in OvertureMaps/schema

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.