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
_comment fields from SDK (current workaround)
Current Status
PR #47 removed _comment fields as a workaround. This issue tracks adding proper support.
Related
Problem
The SDK state machines include
_commentfields for documentation purposes:{ "states": { "Idle": { "_comment": "Initial state before market opens" } } }However, OttoChain's Circe decoders reject unknown fields, causing validation errors.
Options
.withDefaults+ filter unknown keys_comment: Option[String]to State/Transition case classes_commentfields from SDK (current workaround)Current Status
PR #47 removed
_commentfields as a workaround. This issue tracks adding proper support.Related