OpenApiJsonWriter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
JSON Writer.
public class OpenApiJsonWriter : Microsoft.OpenApi.Writers.OpenApiWriterBase
type OpenApiJsonWriter = class
inherit OpenApiWriterBase
Public Class OpenApiJsonWriter
Inherits OpenApiWriterBase
- Inheritance
Constructors
OpenApiJsonWriter(TextWriter, OpenApiJsonWriterSettings) |
Initializes a new instance of the OpenApiJsonWriter class. |
OpenApiJsonWriter(TextWriter, OpenApiWriterSettings, Boolean) |
Initializes a new instance of the OpenApiJsonWriter class. |
OpenApiJsonWriter(TextWriter) |
Initializes a new instance of the OpenApiJsonWriter class. |
Fields
IndentationString |
The indentation string to prepand to each line for each indentation level. (Inherited from OpenApiWriterBase) |
Scopes |
Scope of the Open API element - object, array, property. (Inherited from OpenApiWriterBase) |
Properties
BaseIndentation |
Base Indentation Level. This denotes how many indentations are needed for the property in the base object. |
Settings |
Settings for controlling how the OpenAPI document will be written out. (Inherited from OpenApiWriterBase) |
Writer |
The text writer. (Inherited from OpenApiWriterBase) |
Methods
CurrentScope() |
Get current scope. (Inherited from OpenApiWriterBase) |
DecreaseIndentation() |
Decreases the level of indentation applied to the output. (Inherited from OpenApiWriterBase) |
EndScope(ScopeType) |
End the scope of the given scope type. (Inherited from OpenApiWriterBase) |
Flush() |
Flush the writer. (Inherited from OpenApiWriterBase) |
IncreaseIndentation() |
Increases the level of indentation applied to the output. (Inherited from OpenApiWriterBase) |
IsArrayScope() |
Whether the current scope is an array scope. (Inherited from OpenApiWriterBase) |
IsObjectScope() |
Whether the current scope is an object scope. (Inherited from OpenApiWriterBase) |
IsTopLevelScope() |
Whether the current scope is the top level (outermost) scope. (Inherited from OpenApiWriterBase) |
StartScope(ScopeType) |
Start the scope given the scope type. (Inherited from OpenApiWriterBase) |
VerifyCanWritePropertyName(String) |
Verifies whether a property name can be written based on whether the property name is a valid string and whether the current scope is an object scope. (Inherited from OpenApiWriterBase) |
WriteEndArray() |
Write JSON end array. |
WriteEndObject() |
Write JSON end object. |
WriteIndentation() |
Write the indentation. |
WriteNull() |
Write null value. |
WritePropertyName(String) |
Write property name. |
WriteRaw(String) |
Writes the content raw value. |
WriteStartArray() |
Write JSON start array. |
WriteStartObject() |
Write JSON start object. |
WriteValue(Boolean) |
Write boolean value. (Inherited from OpenApiWriterBase) |
WriteValue(DateTime) |
Write DateTime value. (Inherited from OpenApiWriterBase) |
WriteValue(DateTimeOffset) |
Write DateTimeOffset value. (Inherited from OpenApiWriterBase) |
WriteValue(Decimal) |
Write decimal value. (Inherited from OpenApiWriterBase) |
WriteValue(Double) |
Write double value. (Inherited from OpenApiWriterBase) |
WriteValue(Int32) |
Write integer value. (Inherited from OpenApiWriterBase) |
WriteValue(Int64) |
Write long value. (Inherited from OpenApiWriterBase) |
WriteValue(Object) |
Write object value. (Inherited from OpenApiWriterBase) |
WriteValue(Single) |
Write float value. (Inherited from OpenApiWriterBase) |
WriteValue(String) |
Write string value. |
WriteValueSeparator() |
Writes a separator of a value if it's needed for the next value to be written. |