Class HonuaAnalysisReportSection
- Namespace
- Honua.Sdk.Abstractions.Studio
- Assembly
- Honua.Sdk.Abstractions.dll
Base type for every section in a HonuaAnalysisReport. The
kind discriminator selects the concrete subtype, resolved through a
source-generated JSON context (trimming/AOT-safe).
[JsonPolymorphic(TypeDiscriminatorPropertyName = "kind")]
[JsonDerivedType(typeof(HonuaHeadingSection), "heading")]
[JsonDerivedType(typeof(HonuaParagraphSection), "paragraph")]
[JsonDerivedType(typeof(HonuaKeyMetricSection), "key-metric")]
[JsonDerivedType(typeof(HonuaTableSection), "table")]
[JsonDerivedType(typeof(HonuaChartSection), "chart")]
[JsonDerivedType(typeof(HonuaMapEmbedSection), "map-embed")]
[JsonDerivedType(typeof(HonuaNarrativeSection), "narrative")]
[JsonDerivedType(typeof(HonuaProvenanceFooterSection), "provenance-footer")]
public abstract record HonuaAnalysisReportSection : IEquatable<HonuaAnalysisReportSection>
- Inheritance
-
HonuaAnalysisReportSection
- Implements
- Derived
- Inherited Members
Remarks
The eight modeled kinds are exhaustive within report contract version
ContractVersionV1; consumers gate on
ReportContractVersion for version-level
compatibility. New fields on a known kind are tolerated (ignored)
on read; an entirely unmodeled kind within a supported contract
version is genuine drift and surfaces as a deserialization error so it is
caught loudly rather than silently dropped.
Properties
Kind
Stable discriminator identifying the section subtype. Each concrete subtype returns its HonuaAnalysisReportSectionKinds constant.
[JsonIgnore]
public abstract string Kind { get; }