4 ms·
JSON has a bunch of schema systems, including Open API which is a repackaging of Swagger with some extra stuff and is also endorsed by Google. Do you consider
by alasdair_ 7y ago
JSON has a bunch of schema systems, including Open API which is a repackaging of Swagger with some extra stuff and is also endorsed by Google.
Do you consider protobuf superior to those alternatives for web-based (rather than server to server) projects?
- kjeetgill 7y agoI spend all my time server to server so I don't feel qualified to give real advice. My impression is that if you're going to talk to a browser, that edge stands to gain much more from conforming to HTTP standards. If your edge is more "applicationy" and less "webpagy" then maybe a browser facing gRPC (or GraphQL?) might be more appealing again. As to the other JSON schema systems, I kinda wish one of them won? It feels like a lot of competing standards still. Not really my area of expertise.
- luhn 7y agoI think OpenAPI/Swagger has won. Haven’t heard of any others recently.
- anderspitman 7y agoThere are a couple gRPC implementations for the browser[0](officially supported), but it seems to require quite a bit of adaptation, and looked pretty complicated to set up. [0] https://grpc.io/blog/state-of-grpc-web/ https://grpc.io/blog/state-of-grpc-web/