authzed 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +0,0 @@
1
- # Generated protoc-gen-validate descriptors
2
-
3
- Changes introduced after Ruby protoc changes described in https://protobuf.dev/news/2023-04-20/
4
-
5
- The blog post reads
6
-
7
- > add_serialized_file verifies that all dependencies listed in the descriptor were previously added with add_serialized_file. Generally that should be fine, because the generated code will contain Ruby require statements for all dependencies, and the descriptor will fail to load anyway if the types depended on were not previously defined in the DescriptorPool.
8
-
9
- `protoc-gen-validate` does not offer ruby templates for protoc, so for `authzed-rb` the workaround has been to
10
- generate an empty stub to satisfy the import.
11
-
12
- The new Ruby code expects all type descriptors to be loaded, so a warning emerges when a dependency hasn't been loaded:
13
-
14
- ```
15
- #<Google::Protobuf::TypeError: Unable to build file to DescriptorPool: Depends on file 'validate/validate.proto', but it has not been loaded>
16
-
17
- Warning: Protobuf detected an import path issue while loading generated file /usr/local/rvm/gems/ruby-3.1.4/gems/authzed-0.7.0/lib/authzed/api/v1/core_pb.rb
18
- Each proto file must use a consistent fully-qualified name.
19
- This will become an error in the next major version.
20
- ```
21
-
22
- This folder vendors the `validate.proto` file and generates Ruby code out of it using buf.
23
-
24
- ## How to generate
25
-
26
- ```bash
27
- # run from /lib folder
28
- ./validate/buf.gen.yaml
29
- ```
30
-
31
- Note: It's important to run this from /lib, to make sure the generated descriptor name matches `validate/validate.proto`
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env -S buf generate --template
2
- version: "v1"
3
- plugins:
4
- - name: "ruby"
5
- out: "."
@@ -1,2 +0,0 @@
1
- # Generated by buf. DO NOT EDIT.
2
- version: v1
@@ -1,3 +0,0 @@
1
- ---
2
- version: "v1"
3
- name: "buf.build/envoyproxy/protoc-gen-validate"