Skip to content

jsonrpc: transformObject default array casting for alias element types#3760

Merged
raphael merged 1 commit into
v3from
feat/transform-defaults-alias-cast-v3
Aug 11, 2025
Merged

jsonrpc: transformObject default array casting for alias element types#3760
raphael merged 1 commit into
v3from
feat/transform-defaults-alias-cast-v3

Conversation

@raphael
Copy link
Copy Markdown
Member

@raphael raphael commented Aug 11, 2025

  • Cast default array elements only when target element is an alias type.
  • Support defaults provided as expr.ArrayVal, []any, []string, and concrete primitive slices (int, int32, int64, uint, uint32, uint64, float32, float64, bool).
  • Avoid reflection; unify handling across cases.
  • Preserve previous behavior for non-alias element types by assigning raw default.
  • Fix linter if-else chain warning.

… element types; support []any, []string, []{int,uint,float,bool} and expr.ArrayVal; avoid reflection and unify handling; fix linter if-else chain
@raphael raphael enabled auto-merge (squash) August 11, 2025 07:53
@raphael raphael merged commit ae04222 into v3 Aug 11, 2025
7 checks passed
@raphael raphael deleted the feat/transform-defaults-alias-cast-v3 branch August 11, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant