Feature: Allow multiple types
See original GitHub issueIt 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:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Any updates on the issue?