spf13 / spf13/cast

Support inline json for []string

Open
#62 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
4k
Forks
337
Avg merge
15m
Merged PRs (30d)
1

Description

Hi,
It's a bit confusing to use inline json for map but having to use space separated items for slices.
For consistency it would be great to also support inline JSON for list.
What do you think?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the existing Go casting path for map values and the handling of space-separated []string values, then inspect nearby tests for inline JSON behavior. Add coverage for inline JSON lists and confirm that []string inputs are parsed consistently with inline JSON maps.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.