Skip to content

Dynamically excluding a field in a struct from json schema export  #149

@iangregsondev

Description

@iangregsondev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions