Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object of type function is not JSON serializable #432

Open
dgaedcke opened this issue Dec 25, 2022 · 0 comments
Open

Object of type function is not JSON serializable #432

dgaedcke opened this issue Dec 25, 2022 · 0 comments
Labels

Comments

@dgaedcke
Copy link

dgaedcke commented Dec 25, 2022

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 ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants