You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say we have two versions: v1 and v2
Let's say that our response has a field "address: str" and we want to turn it into a dict in v2. How do we handle this situation in Cadwyn?
What about its reverse? (dict to str)
The text was updated successfully, but these errors were encountered:
Hello @zmievsa , been looking at the issue, can we approach this with the JSON library in Python? json.loads() could be used to convert a str to dict, and json.dumps() could be used to do the vice versa.
That's great. But now we need to figure out how to make sure that v1 still works as it worked. There are a few ways to do this:
A deprecation warning and deletion of all addresses that cannot be parsed
Using a different field in database and in schemas for the new address style + make the new style optional in responses
etc
Either way, it's a pretty tough task. It requires a great understanding of both API Versioning and Cadwyn. I recommend picking some of the tasks marked as good first issue instead :)
But if you would like to help with this one -- I am ready to review and help with any contributions 🙏
Let's say we have two versions: v1 and v2
Let's say that our response has a field "address: str" and we want to turn it into a dict in v2. How do we handle this situation in Cadwyn?
What about its reverse? (dict to str)
The text was updated successfully, but these errors were encountered: