Skip to content

How to enforce contracts in API development?

1 pointarter45discuss
On 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?

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.