The scaled branches discriminate on the presence of domain rather than
using infer D against the optional property: inferring from an absent
optional property yields the constraint (Schema.Codec<any, any>), not the
declared default, which would silently degrade the value type to any.
Maps a ParamConfig to the ParamEntry fromConfig returns for it, preserving the concrete schema type.
The scaled branches discriminate on the presence of
domainrather than usinginfer Dagainst the optional property: inferring from an absent optional property yields the constraint (Schema.Codec<any, any>), not the declared default, which would silently degrade the value type toany.