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

Check overlap with pydantic #23

Open
pgleeson opened this issue Oct 12, 2022 · 1 comment
Open

Check overlap with pydantic #23

pgleeson opened this issue Oct 12, 2022 · 1 comment

Comments

@pgleeson
Copy link
Member

What's done here that modelspec doesn't currently do?
https://github.com/pydantic/pydantic

@davidt0x
Copy link
Contributor

I took a look at pydantic when I did the conversion to attrs/cattrs. This article gives some of the reasoning behind why I decided against using it. Overall though, both libraries implement similar functionality. The main difference between modelspec and these libraries is the non-conventional way we are representing lists of objects that have ids as dicts in JSON. Most of the code that I wrote for modelspec handles overriding default JSON serialization and deserialization of a list of objects with ids so that that ids are not serialized with other attributes in the object but instead as keys in a dictionary that contains the underlying object.

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

No branches or pull requests

2 participants