You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Assuming you're running the Reflect method in some kind of one-off script as opposed to on-demand or dynamically. You could consider using globals or flags alongside the JSONSchemaExtend method to determine if the InternalConfig should be included or not: https://github.com/invopop/jsonschema?tab=readme-ov-file#custom-type-definitions
Hi,
I was wondering if it's possible to exclude a field dynamically.
I have the following field.
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
The text was updated successfully, but these errors were encountered: