Skip to content

Document configuring JsonOptions for OpenAPI globally #34316

@captainsafia

Description

@captainsafia

Description

Our OpenAPI documentation currently shows how to use JSON serialization options to modify the document generation via attributes.

We should demonstrate how to configure things globally as well with the JSON options configuration.

This would also be a good place to document the fact that MVC's JSON options are distinct from the global JSON options that OpenAPI consumes from.

cc: @mikekistler

Page URL

https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/include-metadata?view=aspnetcore-9.0&tabs=minimal-apis#enum

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/fundamentals/openapi/include-metadata.md

Document ID

cbc730ec-642f-480d-4a41-044c6c6ef7d3

Article author

@captainsafia

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions