-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add jsonschema dump of API protocols #13254
Copy link
Copy link
Open
Labels
Description
description
In order to create a vscode plugin (#13078) we need to dump the protobuf protocols to jsonschema
I have created a container for testing https://github.com/chrusty/protoc-gen-jsonschema - and have it installed and working there with the provided examples etc
Im not totally clear how/where to install this within bazel so it is available to protoc - and also how to trigger the actual protoc commands for the envoy API - any help/pointers with these tasks would be much appreciated
refs
- https://json-schema.org/understanding-json-schema/reference/conditionals.html
- https://github.com/chrusty/protoc-gen-jsonschema
- https://github.com/stackb/rules_proto
- https://github.com/envoyproxy/protoc-gen-validate
- Add an
envoyconflinting/validation tool #13233 - VSCode syntax extension #13078
- https://github.com/phlax/typed-config-testing
- https://stackoverflow.com/questions/57076320/conditional-json-schema-based-on-dynamic-property-value
- https://stackoverflow.com/questions/57054781/check-differently-nested-properties-in-json-schema
- Fix #74: add "deprecated" keyword json-schema-org/json-schema-spec#737
Reactions are currently unavailable