Skip to content

[Best practice] Should I add a version to my json schemas for future changes? #89

Closed Answered by arthurfiorette
Extarys asked this question in Q&A
Discussion options

You must be logged in to vote

I think using the typename as version a bad practice in general. I'd just use it as normally, and when I'll need to change, change the type to a union and handle the migration case or even just rename the type so your migration work can be done inside a prisma migration file.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Extarys
Comment options

@arthurfiorette
Comment options

Answer selected by Extarys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #88 on June 15, 2023 00:29.