Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core Inheritance: System.ObjectSyntax
Summary
Validates Mintlify docs.json configuration against the official schema requirements.Remarks
This class provides comprehensive validation of the docs.json configuration to ensure it complies with the Mintlify schema and will work correctly when deployed.Constructors
.ctor
Syntax
Methods
Validate
Validates a docs.json configuration against the Mintlify schema.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
Returns
Type:System.Collections.Generic.List<string>
A list of validation errors. Empty if configuration is valid.
ValidateApi
Validates the API configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateAppearance
Validates the appearance configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateColors
Validates the color configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateGroups
Validates group configurations in navigation.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateIcons
Validates the icons configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateLogo
Validates the logo configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateNavigation
Validates the navigation configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateRequired
Validates that the configuration has all required properties.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateSeo
Validates the SEO configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |
ValidateTheme
Validates the theme configuration.Syntax
Parameters
Name | Type | Description |
---|---|---|
config | Mintlify.Core.Models.DocsJsonConfig | The configuration to validate. |
errors | System.Collections.Generic.List<string> | The list to add errors to. |