Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Converters Inheritance: System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.ServerConfig>

Syntax

Summary

Handles JSON conversion for server configuration properties that can be strings or arrays.

Remarks

Server configurations in Mintlify can be specified as:
  • String: Single server URL
  • Array: Multiple server URLs

Constructors

.ctor

Syntax

Methods

CanConvert Override

Determines whether the specified type can be converted by this converter.

Syntax

Parameters

Returns

Type: bool True if the type is ServerConfig; otherwise, false.

Read Override

Reads and converts the JSON to a ServerConfig object.

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.ServerConfig? A ServerConfig for all supported server configuration formats.

Exceptions

Write Override

Writes the ServerConfig object to JSON.

Syntax

Parameters