HNHacker News
TopNewBestAskShowJobs

avolpe

1 karma · joined May 14, 2016

submissionscomments
avolpe··on Show HN: Auto-generate an OpenAPI spec by listening to localhost
You are right, for Spring Boot, the relatively new springdoc supports javadoc[1] as descriptions, which is better than the annotation.

[1] https://springdoc.org/#javadoc-support

avolpe··on Show HN: Auto-generate an OpenAPI spec by listening to localhost
For the happy path, the Java code works great, but a good open API spec also includes the following:

- examples, they are a pain to write in Java annotations.

- multiple responses, ok, invalid id, not found, etc.

- good descriptions, you can write descriptions in annotations (particularly post Java 14) but they are overly verbose.

- validations, you can use bean validation, but if you implement the logic in code it's not easy to add that to the generated spec.

See for example this from springfox https://github.com/springfox/springfox/blob/master/springfox...

It's overly verbose and the generated open API spec is not very good.

avolpe··on Firefox 85 cracks down on supercookies
I think that they put the user information in the image using something like this[1].

[1]. https://github.com/subc/steganography