Table of Contents

ValidateOptions Method

Definition

Namespace
Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol
Assemblies
Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol.dll
Source
src/Codebelt.Extensions.Swashbuckle.AspNetCore.ModelContextProtocol/McpDocumentOptions.cs

ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

public void ValidateOptions()

Remarks

This method is expected to throw exceptions when one or more conditions fails to be in a valid state.

Exceptions

InvalidOperationException

Version is null, empty, or consists only of white-space characters - or - Version is not one of the supported MCP revisions: 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26, or 2024-11-05.