Skip to content

Add parameter terseOutput to OpenApiSerializableExtensions.SerializeAsync #2534

@joostverhoog

Description

@joostverhoog

I would like to easily serialize elements without unnecessary whitespace.

The constructor of OpenApiJsonWriter has a parameter terseOutput for that. However, OpenApiSerializableExtensions.SerializeAsync<T>(T, Stream, OpenApiSpecVersion, string, OpenApiWriterSettings?, CancellationToken) passes terseOutput: false.

See https://github.com/microsoft/OpenAPI.NET/blob/main/src/Microsoft.OpenApi/Extensions/OpenApiSerializableExtensions.cs#L91

I would like that method to have an additional parameter terseOutput: Boolean = false, which is passed to the constructor of OpenApiJsonWriter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions