intility / intility/json-api-toolkit

Make JsonApiFilterParser.s_separator private and immutable

Open
#133 0 comments 0 reactions 1 assignee View on GitHub

@erlendellefsen is already working on this.

Since Aug 20, 2026.

.NET bug
Dominant language
C#
Stars
7
Forks
0
Avg merge
1d 4h
Merged PRs (30d)
23

Description

JsonApiToolkit/Parsing/JsonApiFilterParser.cs:15 exposes public static readonly string[] s_separator. The array contents are mutable, so any caller can change them and break filter parsing for the whole process. The s_ prefix on a public field also breaks the editorconfig naming rule.

Acceptance criteria

  • Field is private (or replaced with a private const string)
  • No way to mutate it from outside the class
  • All call sites updated, tests pass

Contributor guide

Open the contributing guide

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.