Release 1.7.0: declarative semantic-type registry (#166) + partial generated types (#167) - #168
Merged
Conversation
…nerated types (#167) Closes #166: schemas can now annotate fields with semanticType (e.g. UTCTimestampNanos, LocalMktDate, MonthYear) and the generator emits a sibling typed accessor {Field}Value alongside the raw wire field. Eight FIX/SBE built-in converters ship out of the box; users can register or override via [assembly: SbeSemanticType("Name", typeof(MyConverter))] where MyConverter implements ISbeSemanticConverter<TWire,TSemantic>. Optional fields produce nullable accessors. Field-level semanticType wins, otherwise the field inherits its referenced type's semanticType (common FIX/B3 pattern). Types already producing a typed helper struct (e.g. LocalMktDate -> DateOnly) are left untouched to avoid double conversion. Raw wire accessor is never replaced. Closes #167: SbeDispatcher, ISbeMessageHandler, {Msg}VersionMap, {Msg}DataReader, and {X}Validation are now emitted as partial so consumers can extend them in user code without forking the generator. Layout-bearing blittable structs were already partial. Adds diagnostics SBE016 (wire-type mismatch), SBE017 (does-not-implement ISbeSemanticConverter), SBE018 (semantic accessor name collision). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Sep 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 1.7.0: declarative semantic-type registry (#166) + partial generated types (#167)
Closes #166: schemas can now annotate fields with semanticType (e.g.
UTCTimestampNanos, LocalMktDate, MonthYear) and the generator emits a
sibling typed accessor {Field}Value alongside the raw wire field. Eight
FIX/SBE built-in converters ship out of the box; users can register or
override via [assembly: SbeSemanticType("Name", typeof(MyConverter))]
where MyConverter implements ISbeSemanticConverter<TWire,TSemantic>.
Optional fields produce nullable accessors. Field-level semanticType
wins, otherwise the field inherits its referenced type's semanticType
(common FIX/B3 pattern). Types already producing a typed helper struct
(e.g. LocalMktDate -> DateOnly) are left untouched to avoid double
conversion. Raw wire accessor is never replaced.
Closes #167: SbeDispatcher, ISbeMessageHandler, {Msg}VersionMap,
{Msg}DataReader, and {X}Validation are now emitted as partial so
consumers can extend them in user code without forking the generator.
Layout-bearing blittable structs were already partial.
Adds diagnostics SBE016 (wire-type mismatch), SBE017 (does-not-implement
ISbeSemanticConverter), SBE018 (semantic accessor name collision).
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com