Elfocrash / Cosmonaut

🌐 A supercharged Azure CosmosDB .NET SDK with ORM support
https://cosmonaut.readthedocs.io
MIT License
342 stars 44 forks source link

Serialised POCO Schema Validation #22

Closed ethanae closed 5 years ago

ethanae commented 5 years ago

Hi,

Nice work on the library! Regarding setting up a schema and validating of documents off of that schema. Does something like this already exist in the library? If not, is it on the map?

This library is something C# and Cosmos need. So I'd like to help out.

Regards, Ethan

Elfocrash commented 5 years ago

Hello and thanks.

Are you talking about, validating the schema of the document being inserted in a collection?

ethanae commented 5 years ago

Yes, exactly. Something similar to Mongoose schemas.

Elfocrash commented 5 years ago

After taking a look at Mongoose and how Schemas work there here is what I think.

Basically I don't want an ORM to have too much responsibility.

ethanae commented 5 years ago

I see where you are coming. Thanks for the info!