Skip to content

Commit

Permalink
dev: Remove allow_delete_body from proto generators
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaIyer committed Jun 26, 2023
1 parent 4f9b91f commit 94206a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cypress/integration/console/devices/unclaim.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ describe('Device un-claiming', () => {
cy.findByRole('button', { name: /Unclaim and delete end device/ }).click()
})

cy.wait('@unclaim-request').its('request.body').should('not.exist')

cy.findByTestId('error-notification').should('not.exist')

cy.location('pathname').should(
Expand Down
2 changes: 0 additions & 2 deletions tools/mage/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ func (p Proto) fieldMask(context.Context) error {
func (p Proto) grpcGateway(context.Context) error {
return withProtoc(grpcGatewayProtoImage, func(pCtx *protocContext, protoc func(...string) error) error {
if err := protoc(
fmt.Sprintf("--grpc-gateway_out=allow_delete_body=true:%s", protocOut),
fmt.Sprintf("%s/api/*.proto", pCtx.WorkingDirectory),
); err != nil {
return fmt.Errorf("failed to generate protos: %w", err)
Expand Down Expand Up @@ -204,7 +203,6 @@ func (p Proto) Swagger(context.Context) error {
}
return withProtoc(openAPIv2ProtoImage, func(pCtx *protocContext, protoc func(...string) error) error {
if err := protoc(
"--openapiv2_opt allow_delete_body=true",
"--openapiv2_opt=json_names_for_fields=false",
fmt.Sprintf("--openapiv2_out=allow_merge,merge_file_name=api:%s/api", pCtx.WorkingDirectory),
fmt.Sprintf("%s/api/*.proto", pCtx.WorkingDirectory),
Expand Down

0 comments on commit 94206a5

Please sign in to comment.