Skip to content

Releases

1.0.0-preview.1

1.0.0-preview.1 Pre-release
Pre-release

Choose a tag to compare

@hlib-zinchenko hlib-zinchenko released this 29 Nov 11:14

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, PropertySummary and EnumValueSummary read 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>, langword and paramref become 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 to AppContext.BaseDirectory.
  • AccessorWording.Strip removes 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.

Packages