What is a change workflow? #10
Replies: 1 comment
-
The main challenge with designing APIs is handling breaking changes. If you add a new required field to a route, the client code will break upon publishing a new version to the server. Sometimes, client and server code are within the same repo, so you can get away with it. At other times, the API is a product your company provides to its users, and those client libraries might take a long time to update. Create a new endpoint where the new field is required In both cases, the workflow should first update the TypeSpec file and then generate the server and/or client code. Both options are non-breaking, so it depends on the context of your problem. I can provide more targeted advice if you could give me more details about your specific example. |
Beta Was this translation helpful? Give feedback.
-
First, kudos for the great project!
Question - Say I already created a typespec and generated all the associated code. Then I'm tasked with adding a new field to some route. What is the workflow:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions