Skip to content

docs(refit): document JSON contexts and JsonTypeInfo parameters - #997

Merged
glennawatson merged 1 commit into
mainfrom
docs/refit-json-contexts
Sep 21, 2026
Merged

glennawatson merged 1 commit into
mainfrom
docs/refit-json-contexts

Conversation

@glennawatson

Copy link
Copy Markdown
Contributor

What are the main goals of this change?

  • Better readability (style, grammar, spelling...)
  • Content correction (accuracy, wrong information...)
  • New content

Is this change related to any reported issue? (Optional)

No issue. This documents reactiveui/refit#2333.

Notes (Optional)

  • The AOT and JSON pages walk through registering a JSON context, the web defaults, whose serializer settings apply, and turning reflection-based JSON off.
  • Building your own serializer options stays documented next to the context short path, with a note on when to pick each.
  • Methods that take a JsonTypeInfo<T> parameter are covered on the JSON, bodies, responses and streaming pages, including the RF014 build check.
  • The client, settings and dependency injection pages, the API reference and the request helpers list the new overloads.
  • The statements that Refit does not take JsonTypeInfo<T> are replaced with how the parameter works.
  • Code blocks are excerpts of the runnable examples in feat: register JSON contexts and accept JsonTypeInfo parameters refit#2333, so merge that pull request first.

- The AOT and JSON pages walk through registering a context, the web defaults, whose settings apply, and turning reflection-based JSON off.
- Building your own serializer options stays documented next to the context short path, with a note on when to pick each.
- Methods that take a JsonTypeInfo<T> parameter are covered on the JSON, bodies, responses and streaming pages, including the RF014 build check.
- The client, settings and dependency injection pages, the API reference and the request helpers list the new overloads.
@glennawatson
glennawatson merged commit 03228df into main Sep 21, 2026
4 checks passed
@glennawatson
glennawatson deleted the docs/refit-json-contexts branch September 21, 2026 01:37
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