Jérôme Lafréchoux

Results 65 issues of Jérôme Lafréchoux

Python 3.7 brings context variables. I've been using this along with a context manager to pass contextual values in a thread-safe way. https://github.com/Scille/umongo/blob/master/umongo/expose_missing.py https://stackoverflow.com/a/67807219/4653485 https://stackoverflow.com/a/59911117/4653485 This could be suited to...

See discussion in https://github.com/marshmallow-code/marshmallow/issues/493#issuecomment-380468027. We have two ways to do the same thing. They sometimes behave differently, which generally means one of them is buggy. IMHO, and from what I...

feedback welcome
backwards incompat

When saving a document with a `ReferenceField` holding a new object, I get an error: ``` mongoengine.errors.ValidationError: ValidationError You can only reference documents once they have been saved to the...

Enhancement

Add a layer above `field2property`to allow for more customization of the result. Generalizes the `multiple`mechanism to deal with not only `List`. There might be room for factorization with attribute functions...

I've been trying to document webargs's `DelimitedList` (child class of `List`) and I'm stuck because I'd need to override hardcoded stuff. ```py def field2parameter(self, field, name, default_in): location = field.metadata.get("location",...

Currently, definitions can be registered to be referenced to in the spec. The spec allows to register other objects like parameters or responses. OpenAPI 3: https://swagger.io/specification/#componentsObject Some of them also...

enhancement
help wanted

Python's date/datetime objects have min/max bounds. https://docs.python.org/3.5/library/datetime.html https://stackoverflow.com/a/31972447/4653485 We should use those to automatically specify min/max values in the spec.

enhancement
help wanted

See discussions in https://github.com/marshmallow-code/apispec/pull/299. No strong feeling either way. Indeed, it probably works for most users, and anyone unhappy about the default values may install and call prance independently, so...

feedback welcome
backwards incompat

I think that in marshmallow swagger, some pathological cases are not handled the best way. This ```python field = fields.Str(validate=[ validate.Equal('only choice'), validate.Equal('only choice_2')]) ``` produces ``` ['enum'] = ['only...

bug

Hi. We discovered this today. The "try it" feature is broken for credentials using non-ASCII characters. Server-side, we expect `utf-8` credentials. To be fair, there doesn't seem to be a...