flasgger / flasgger/flasgger

Schema with no required fields crashes

Open
#598 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
525
PR merge metrics
No merged PRs in 30d

Description

I am using marshmellow schema in generating swagger documentation. When I am trying to create a schema without required fields the code crashes

```python
if len(definitions[v.__name__]['required']) != 0:
new[k][0]['required'] = True
```

How to avoid this problem

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.