Dynamically excluding a field in a struct from json schema export
- Dominant language
- Go
- Stars
- 952
- Forks
- 136
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I was wondering if it's possible to exclude a field dynamically.
I have the following field.
```
Internal InternalConfig `json:"internalConfig"`
```
What would be ideal is to create 2 schemas: one for developers, which includes this field, and the other for clients (I am using this schema to create a Markdown file).
InternalConfig is something I don't want to exist in the client schema (which I use for creating markdown documentation)
Any ideas?
I am probably missing something.
Thanks in advance
ian
Contributor guide
No contributing guide indexed for this repository
Research direction
No files, tests, or entry points are named in the issue. Start by locating the schema-generation entry point and existing field-exclusion behavior, then determine how separate developer and client schemas should be selected. Done means the requested field can be excluded dynamically while remaining available in the developer schema, with coverage for both outputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100