Share via


SwaggerXml Class

Definition

The Swagger XML.

public class SwaggerXml
type SwaggerXml = class
Public Class SwaggerXml
Inheritance
SwaggerXml

Constructors

SwaggerXml()

Initializes a new instance of SwaggerXml.

Properties

Extensions

The vendor extensions.

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

IsAttribute

Indicates whether the property should be an attribute instead of an element.

IsWrapped

Indicates whether the array elements are wrapped in a container element.

Name

The xml element or attribute name.

Namespace

The xml namespace.

Prefix

The name prefix.

Applies to