Repository navigation
Releases
Releases · hlib-zinchenko/Hlibz.XmlDocs
1.0.0-preview.1
The first preview: your XML documentation comments, read at runtime, so an OpenAPI document and an MCP tool's schema describe a property in the same words. Extracted from Hlibz.OpenApi.AspNetCore, which now depends on it.
Features
- Hlibz.XmlDocs (no dependencies):
XmlDocumentation.TypeSummary,PropertySummaryandEnumValueSummaryread the<summary>from the XML file next to an assembly, flattened to one line. A positional record's property reads the record's<param>, and<remarks>are never read.<c>,langwordandparamrefbecome Markdown code, and a<see cref>becomes the short name it points to. It is single-file and AOT safe, and in a single-file app it falls back toAppContext.BaseDirectory. AccessorWording.Stripremoves StyleCop's "Gets or sets", "Gets a value indicating", ... from the start of a summary.- Hlibz.XmlDocs.AI:
AIJsonSchemaCreateOptions.WithXmlDocumentation()describes MCP tool and AI function schemas (Microsoft.Extensions.AI) by those summaries, without StyleCop's accessor wording. It runs after any transform you already have, and an explicit[Description]wins.