How to enforce contracts in API development?
1 points
1 hour ago
| 0 comments
| HN
Imagine you start from an API "contract" like a Swagger specification.

You use a generator to automatically convert that spec to boilerplate code. But then you have to add business logic, authentication and so on.

When the API spec change, what do you do? Do you re run the generator? If not, how can you enforce your code is compliant with the spec?

No one has commented on this post.