How to emit descriptions for exported JSON schema using JsonSchemaExporter
Last updated
Last updated
We now (.NET 9+) have an API to export a JSON schema from a .NET type:
The default exporter will not, however, provide descriptions for those properties, even if a [Description(...)]
attribute is provided. The way to fix that is to provide a TransformSchemaNode
callback like so: