File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ message CreateAssetRequest {
17
17
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema ) = {
18
18
json_schema : {
19
19
description : "This describes the body of a request to create a new Asset."
20
+ // required is empty as all fileds are populated with defaults
20
21
}
21
22
example :"{ "
22
23
"\"behaviours\": [\"RecordEvidence\"], "
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ message CreateEventRequest {
17
17
description :
18
18
"Request creating RecordEvidence event "
19
19
"Specify `operation` to chose which RecordEvidence event to create "
20
+ required : ["uuid", "behaviour", "operation" ]
20
21
}
21
22
example :"{ "
22
23
"\"operation\": \"Record\", "
@@ -82,4 +83,4 @@ message CreateEventRequest {
82
83
pattern : "^[^[:cntrl:]]*?[^[[:cntrl:]]+?[^[:cntrl:]]$|^[^[:cntrl:]]$|^[^[:cntrl:]]*?[^][:cntrl:]]$"
83
84
}
84
85
];
85
- }
86
+ }
Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ go 1.22
11
11
// replace github.com/datatrails/go-datatrails-common-api-gen => ./
12
12
13
13
require (
14
- github.com/datatrails/go-datatrails-common v0.15.3
15
- github.com/envoyproxy/protoc-gen-validate v1.0.2
14
+ github.com/datatrails/go-datatrails-common v0.17.1
15
+ github.com/envoyproxy/protoc-gen-validate v1.0.4
16
16
github.com/google/uuid v1.4.0
17
- github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1
17
+ github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0
18
18
github.com/lyft/protoc-gen-star/v2 v2.0.3
19
19
github.com/pseudomuto/protoc-gen-doc v1.5.1
20
20
github.com/spf13/afero v1.3.3
21
21
github.com/stretchr/testify v1.9.0
22
22
go.mongodb.org/mongo-driver v1.12.1
23
- google.golang.org/genproto/googleapis/api v0.0.0-20231127180814-3a041ad873d4
24
- google.golang.org/grpc v1.59 .0
23
+ google.golang.org/genproto/googleapis/api v0.0.0-20240701130421-f6361c86f094
24
+ google.golang.org/grpc v1.65 .0
25
25
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.3.0
26
- google.golang.org/protobuf v1.31.0
26
+ google.golang.org/protobuf v1.34.2
27
27
gopkg.in/yaml.v3 v3.0.1
28
28
)
29
29
You can’t perform that action at this time.
0 commit comments