I am trying to build a flask restplus model for the following structure.
"data": {
"file1": 79,
"file2": 72
}
file1 and file2 are file names and it changes every time I run the app. The best solution I could think of was to use Wildcard fields.
wild = fields.Wildcard(fields.String)
wildcard_fields = {'*': wild}
When I run, I get AttributeError: module 'flask_restplus.fields' has no attribute 'Wildcard'
Please help me resolve this issue or any other solution is also appreciated.
Thanks!