-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pb-rust: JSON schema compilation source (#118)
* codegen: init schemafy includes the modules structure definitions needed have full package prefixes, like ```rust use sigstore_protobuf_specs::dev::sigstore::verification::v1::Input ``` Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: schemafy only Bundles Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> pb-rust: schemafy construction Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: port prost unit tests adapted from b7d905d Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: bundle deserialize integration Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: use camelCase consistently in schema/artifacts Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: schema generation bugs Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> * pb-rust: re-enable test suite Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com> --------- Signed-off-by: Jack Leightcap <jack.leightcap@trailofbits.com>
- Loading branch information
1 parent
ad8dfad
commit 88fe2fb
Showing
66 changed files
with
4,098 additions
and
11,261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
!/bin/sh | ||
#!/bin/sh | ||
|
||
set -u | ||
set -e | ||
|
||
protoc --plugin=/root/go/bin/protoc-gen-jsonschema \ | ||
--jsonschema_opt=disallow_additional_properties \ | ||
--jsonschema_opt=enforce_oneof \ | ||
--jsonschema_opt=enums_as_strings \ | ||
--jsonschema_opt=enums_as_strings_only \ | ||
--jsonschema_opt=file_extension=schema.json \ | ||
--jsonschema_opt=json_fieldnames \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.