Skip to content

Commit

Permalink
add exactly_one_of to format types
Browse files Browse the repository at this point in the history
  • Loading branch information
andreigurau committed Sep 24, 2024
1 parent 6d78158 commit b144e91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mmv1/products/pubsub/Topic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ properties:
Configuration for reading Cloud Storage data in text format. Each line of
text as specified by the delimiter will be set to the `data` field of a
Pub/Sub message.
exactly_one_of:
- text_format
- avro_format
- pubsub_avro_format
properties:
- !ruby/object:Api::Type::String
name: 'delimiter'
Expand All @@ -227,6 +231,10 @@ properties:
bytes of each object will be set to the `data` field of a Pub/Sub message.
allow_empty_object: true
send_empty_value: true
exactly_one_of:
- text_format
- avro_format
- pubsub_avro_format
properties:
[] # Meant to be an empty object with no properties.
- !ruby/object:Api::Type::NestedObject
Expand All @@ -238,6 +246,10 @@ properties:
will be restored when publishing.
allow_empty_object: true
send_empty_value: true
exactly_one_of:
- text_format
- avro_format
- pubsub_avro_format
properties:
[] # Meant to be an empty object with no properties.
- !ruby/object:Api::Type::String
Expand Down

0 comments on commit b144e91

Please sign in to comment.