Feature Request - Optional Message Formatters

Open
#33 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp, fsharp, openapi
Domain
api

Research direction

Start by reading the SwaggerProvider constructor and the WebApiConfig formatter setup shown in the issue, including MessagePackMediaTypeFormatter. Trace how the provider is initialized and determine the intended constructor input; done means a caller can supply an optional formatter and existing provider behavior remains unchanged.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Within .NET WebAPI, its possible to add custom formatters for the message types, under WebApiConfig.
e.g.

        public static void Register(HttpConfiguration config)
        {
            // Web API configuration and services

            // Web API routes
            config.MapHttpAttributeRoutes();
            config.Formatters.Add(new MessagePackMediaTypeFormatter());

It'd be cool if we could add a formatter to the SwaggerProvider type constructor!

Dominant language
F#
Stars
278
Forks
60
Avg merge
4h 26m
Merged PRs (30d)
8

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.

More from fsprojects/SwaggerProvider

All issues in fsprojects/SwaggerProvider

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.