jsonschema/

directory
v3.3.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: Apache-2.0, Apache-2.0

README

Protoc-gen-jsonschema

Content of this package and subpackages is modified code of 3rd party library protoc-gen-jsonschema. The purpose of the tool is to provide proto to JSON schema conversion in the form of protoc plugin. The customization for ligato is not touching the conversion functionality, but only removes the protoc dependency and enables it to be used as library (internal packages in original repository).

Changes tracking

The base code for ligato modifications is here. Initial commit changes:

  • removed all unnecessary parts
    • project root files except License
    • CMD part for protoc connection
    • convertor tests (they are dependent on protoc at test runtime)
  • extracted convertor out of internal package to be able to use it
  • relaxed some info level logging to debug level logging (proto_package.go, lines 78 and 121)
  • removed "oneof" type from enums to provide compatibility with external json example generator (types.go line 137 and converter.go line 116)

Other changes can be tracked by git changes in this package and its subpackages

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL