jmcarp / jmcarp/flask-apispec

@validates_schema does not work with @use_kwargs

Open
#140 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
652
Forks
151
PR merge metrics
No merged PRs in 30d

Description

**@validates_schema** does not work with **@use_kwargs** when there is a property in my schema which is as follow:
```python
@property
def fields_dict(self):
return self._declared_fields
```

do we have some way around for this? I need both to work at the same time.
@jmcarp

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the interaction between @validates_schema and @use_kwargs with a schema defining the shown fields_dict property. Trace how flask-apispec processes the schema and validation decorators; done means both decorators work together for this schema, with a regression test covering the property.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.