Comments (4)
Added. You can now do:
my_args = {
'name': Arg(list, multiple=True)
}
Thanks for the suggestion.
from webargs.
Hmm, is the type specifier really intended to be list
here?
Reqparse/argparse take a basic type (int, etc) in this situation and use a
multiple
-like flag to indicate that the arg is a list of basic types.
That way you still get type conversion on each element...
On Feb 28, 2014 12:40 AM, "Steven Loria" [email protected] wrote:
Added. You can now do:
my_args = {
'name': Arg(list, multiple=True)}Thanks!
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-36325738
.
from webargs.
Yes, I think the approach you're describing makes more sense. I will change
later today or tomorrow when I'm off work.
StevenLoria.com
On Fri, Feb 28, 2014 at 8:26 AM, Peter Fein [email protected]:
Hmm, is the type specifier really intended to be
list
here?
Reqparse/argparse take a basic type (int, etc) in this situation and use a
multiple
-like flag to indicate that the arg is a list of basic types.
That way you still get type conversion on each element...
On Feb 28, 2014 12:40 AM, "Steven Loria" [email protected] wrote:Added. You can now do:
my_args = {
'name': Arg(list, multiple=True)}Thanks!
Reply to this email directly or view it on GitHub<
https://github.com/sloria/webargs/issues/1#issuecomment-36325738>.
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-36350068
.
from webargs.
Fixed. Thanks again!
from webargs.
Related Issues (20)
- Consider trying pre-commit.ci for autoupdate PRs + faster CI HOT 9
- [RFC] Revisiting our CI setup: GH Actions, RTD HOT 8
- potential documentation issue in quickstart/error-handling HOT 3
- Parse a schema that contains both file and form data HOT 2
- How to strip empty strings from list of strings in args using DjangoParser? HOT 3
- Tags cleanup HOT 2
- How to use partial loading with nested field HOT 2
- When setting location to `files`, custom field's `_deserialize` and `_validated` methods were not called HOT 7
- aiohttp. body argument is deprecated for http web exceptions HOT 1
- Update minimum supported versions of frameworks in next major release HOT 1
- Release version 8.2.0 HOT 4
- [Question] how to use this with line item like data? HOT 2
- Is there possible add Quixote web framework support HOT 2
- [Question] How to set up the Schema that will validate against a list of allowed enum values? HOT 1
- Dealing with empty values in `DelimitedFieldMixin` HOT 2
- Being able to handle ValidationError in Flask view methods without custom error handler HOT 4
- webargs.core.Parser should describe default for unknown either as marshmallow.EXCLUDE or "exclude" HOT 1
- RFC: support passing the whole parsed arguments as a keyword argument HOT 10
- Please consider using Mapping instead of Dict in ArgsMap to avoid type checker errors HOT 7
- Parse schema without using decorators HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webargs.