microsoft / microsoft/cppgraphqlgen

Enhancement: serializer control tokens

Open
#347 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
350
Forks
56
Avg merge
2h 33m
Merged PRs (30d)
3

Description

I need to control precision of json serializer for specific fields. It would be perfect to for example push something like setPrecisiin token before and after field value.

I think it could be implemented with FieldParams optional field that could be set by user implementwtion upon field visit. It could be in a form of some kind control token factory invoked before and after token value visit. The token itself could work just like reserve token.

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

Start by locating FieldParams and the existing reserve token implementation in the serializer. Clarify how a user-provided control-token factory should run before and after a field value, and define done as precision being controllable for selected JSON fields without affecting other fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.