Skip to content

Commit

Permalink
chore(vdp): adjust EventSpecification message (#517)
Browse files Browse the repository at this point in the history
Because

 - We want to include title and description information in the message.

This commit
 - Updates the EventSpecification message structure.

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
donch1989 and droplet-bot authored Nov 15, 2024
1 parent 4e94223 commit b70a51d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 10 additions & 2 deletions openapi/v2/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6679,9 +6679,17 @@ definitions:
EventSpecification:
type: object
properties:
setupSchema:
title:
type: string
description: Event title.
readOnly: true
description:
type: string
description: Event description.
readOnly: true
configSchema:
type: object
description: JSON schema describing the component event setup data.
description: JSON schema describing the component event config data.
readOnly: true
messageSchema:
type: object
Expand Down
12 changes: 8 additions & 4 deletions vdp/pipeline/v1beta/component_definition.proto
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,16 @@ message DataSpecification {

// EventSpecification describes the JSON schema of component event setup and examples.
message EventSpecification {
// JSON schema describing the component event setup data.
google.protobuf.Struct setup_schema = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// Event title.
string title = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// Event description.
string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
// JSON schema describing the component event config data.
google.protobuf.Struct config_schema = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
// JSON schema describing the component event message data.
google.protobuf.Struct message_schema = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
google.protobuf.Struct message_schema = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
// JSON schema describing the component event examples.
repeated google.protobuf.Struct message_examples = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
repeated google.protobuf.Struct message_examples = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
}

///////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit b70a51d

Please sign in to comment.