flask-smorest
flask-smorest copied to clipboard
Object of type function is not JSON serializable
seeing this error: raise TypeError(f'Object of type {o.class.name} '
from JSON module in the dump code:
with open("api.json", "w") as outfile:
json.dump(tsApi.spec.to_dict(), outfile)
How do I find what decorator is causing spec to be unserializable...
f-sm should be doing some analysis on it's dict to verify that all the types being returned are valid JSON objects ...