Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for missing parameter #52

Open
JohanLarsson opened this issue Jan 15, 2019 · 1 comment
Open

Fix for missing parameter #52

JohanLarsson opened this issue Jan 15, 2019 · 1 comment

Comments

@JohanLarsson
Copy link
Collaborator

JohanLarsson commented Jan 15, 2019

Before:

namespace AspBox
{
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;

    [ApiController]
    public class OrdersController : Controller
    {
        [HttpGet(""api/orders/{id}"")]
        public async Task<IActionResult> GetOrder()
        {
        }
    }
}

After:

namespace AspBox
{
    using System.Threading.Tasks;
    using Microsoft.AspNetCore.Mvc;

    [ApiController]
    public class OrdersController : Controller
    {
        [HttpGet(""api/orders/{id}"")]
        public async Task<IActionResult> GetOrder(string id)
        {
        }
    }
}

Assume string if we can't glean type info from constraints.

@JohanLarsson
Copy link
Collaborator Author

Offer fixes for many types when unknown type

  • object
  • string
  • int
  • bool
  • float
  • guid

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

No branches or pull requests

1 participant