msgspec / msgspec/msgspec

Omit non default fields from final schema.

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

Nobody has claimed this yet.

Dominant language
Python
Stars
4.1k
Forks
193
Avg merge
3d 20h
Merged PRs (30d)
15

Description

Question

Is it possible to mark a non default field to be omitted from the final Schema of a Struct? Didn't find anything on the docs, "Meta" or "field".

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.

Research direction

The issue names Struct, Meta, field, and the final Schema, but no files, tests, or entry points. Start by reviewing the documentation and implementation for those concepts; done would require establishing whether non-default fields can be omitted from the generated schema and defining the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, python
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.