question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Allow multiple types

See original GitHub issue

It seems it would make sense to allow clients to request resources with either json, url encoded or form data. All three could be allowed by the API. Currently the type argument in the validation is only accepting a string. I could create a PR that would accept an array too.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Saghencommented, Apr 4, 2019

I went ahead and implemented this on my fork of the project: https://github.com/Saghen/joi-router

Please note though that this fork is currently a heavy wip.

0reactions
mlshvcommented, Aug 9, 2019

Any updates on the issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Define GO function with multiple types
A golang function can take multiple types of variables as an argument. In this article, we will go ... Example-1: Go function to...
Read more >
How do you make a function accept multiple types?
In Go types automatically implement any interfaces if they have the interface's methods. So if you want to accept all possible types, you...
Read more >
Golang: one function, one argument – multiple types
A golang function can have one argument which accepts multiple types of a restricted set, by writing said function to accept an argument...
Read more >
What is a good way to specify multiple types of an object?
Since an object can have(belongs to) multiple types at the same time. ... Two: To define a concrete "type" function to deal with...
Read more >
How feature types improve your data science workflow
You could have a feature set of wholesale_price , car_price , USD , and continuous . This multiple inheritance allows a data scientist...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found