validation
Here are 239 public repositories matching this topic...
Document the API
Feature Request
It would be great to include API documentation. The Usage docs are great as a walkthrough, but when you want to go fast ("what is the name for the Field parameter for a constant value?"), API docs provide a faster answer.
Another use case: I want to inspect the __fields__ on a model, and had to read the code to get the attribute name I was looking for.
API docs would
DateType and DateTimeType and subclasses use datetime.datetime.strptime, which in turn uses the dateutil library. Unfortunately, this library is much slower at ISO8601 date parsing than C-based alternatives (in particular, ciso8601):
import datetime
import ciso8601
%timeit datetime.datetime.strptime('2018-01-01', '%Y-%m-%d')
# 10.5 µs ± 440 ns per loop (mean ± std. dev. of 7 r
We have this logo for the wtforms group:
And we have this logo for the documentation:
Both are in poor resolution. We should probably make them svgs.
Any suggestions or help is welcomed!
I read the document and implement follow the section "Returning HTTP 400 Responses", but I got the error message "ModuleNotFoundError: No module named 'falcon'".
I wondered that if the falcon module is needed for the feature why it wasn't installed as I run the pip3 install webargs. In the end, I found thi
Similar to the Email validator.
PyPi does not support markdown descriptions.
There are two options:
- Replace md Readme with rst one
- Add some kind of build step to compile ms to rst on wheel build
Which one to choose . . .
How to use Generics?
I think it would help to clarify in the documentation that a deserialized datetime object is by default aware (i.e. its tzinfo attribute is set to a timezone object provided by the pytz non-standard library) rather than being naive (i.e. its tzinfo attribute is
I'm using JSON schema with React JSONSchema Forms to create forms automatically.
Currently, typesystem doesn't emit metadata like title or description into the rendered schema for fields (or schema objects). It does use those parameters for rendering forms, so I think a case can be made for adding it to the generated json schema too if
-
Updated
Nov 8, 2017 - Python
Overview
This issue contains CLI improvements
Tasks
- support
headersoptions - support granular check options
- support providing validation config instead of options (like stringified json)
My guess would be:
goodtables --checks "{'duplicate-row': True}" datapackage datapackage.json
But it returns:
goodtables.exceptions.GoodtablesE
-
Updated
Dec 1, 2017 - Python
-
Updated
Apr 5, 2020 - Python
e.g., How does marsmallow-jsonapi integrate with:
- flask-marshmallow
- marshmallow-sqlalchemy
Currently, the SeriesSchema object doesn't validate the index of the schema. The purpose of this task is to extend the __init__ signature of SeriesSchema to take an index argument, which would take a pa.Index or pa.MultiIndex. In the validate / __call__ call, the index should be checked.
-
Updated
Jun 28, 2020 - Python
-
Updated
Jun 18, 2020 - Python
-
Updated
Mar 15, 2019 - Python
-
Updated
Jul 30, 2019 - Python
-
Updated
Apr 19, 2020 - Python
-
Updated
Apr 22, 2020 - Python
-
Updated
May 28, 2020 - Python
Write and test a function that takes file content and returns it with @deal.raises added to all functions.
def attach_raises(content: str) -> str:
...Example
Before:
import deal
def f1():
...
@deal.raises(ValueError)
def f2():
...
@something
def f1():
...After:
import deal
@deal.raises() # here it is addeWe get the return annotation for free, so we should allow users to do something with it.
-
Updated
Feb 12, 2020 - Python
When trying to install from PIP, python still throws an error about encoding type, as not being able to read the readme file. I see the code on here has been updated to include the encoding='utf-8' however it does not exist in the release that pip downloads. Would be nice to have this fixed.
It seems that the typing module doesn't flatten nested literal type definitions, so the following does not currently work:
SuccessStatus = Literal[200, 201, 204]
ClientError = Literal[404, 401, 403, 409, 400]
ServerError = Literal[500, 504, 503]
@dataclass
class HttpResponse(JsonSchemaMixin):
status: Literal[SuccessStatus, ClientError, ServerError]
...Bootstrap 4 classes
Bootstrap 4 has new classes for the progress bar background color.
I'd be happy to help with a PR for any of these fixes:
- Updating this repo to support Bootstrap 4 and documenting that Bootstrap 3 users need to add the new Bootstrap 4 classes
- Adding a
BOOTSTRAP_VERSIONvariable that defaults to version 4 but allows
Improve this page
Add a description, image, and links to the validation topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."

The fact that
excludetakes dotted notation for nested fields, butunknowndoes not apply to nested fields, means thatexcludedoesn't work for nested fields in some common use cases unless the nested schema(s) have the desiredMeta.unknownsetting, and then they are not runtime-flexible, which is the great benefit of Schema andloadtakingexclude. Somewhat new to marshmallow so mayb