-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Problem
The SDK state machines include _comment fields for documentation purposes:
{
"states": {
"Idle": {
"_comment": "Initial state before market opens"
}
}
}However, OttoChain's Circe decoders reject unknown fields, causing validation errors.
Options
- Ignore unknown fields — Update Circe decoder config with
.withDefaults+ filter unknown keys - Explicit support — Add optional
_comment: Option[String]to State/Transition case classes - Keep SDK clean — Remove all
_commentfields from SDK (current workaround)
Current Status
PR #47 removed _comment fields as a workaround. This issue tracks adding proper support.
Related
- ottochain-services PR fix(ci): use explicit cache key including plugins.sbt #47
- ottochain-sdk PR feat(validation): reject reserved JSON Logic operators as field names #12
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels