[BUG](validation) A model-rooted RootModel entry point joins the undiscriminated arm of the validation union

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by locating the validation union builder and tracing how it classifies discriminated and undiscriminated entry points. Compare how a bare model and a RootModel over that model are handled, then find or add a focused validation test for the two cases. Done means the RootModel validates the same way as the bare model.

Written by the indexing model from the issue text.

Description

The validation union builder puts an entry point that is not a discriminated union in the undiscriminated arm. A RootModel over a model is that model, and should validate the way the bare model does.

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.