-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add googlepubsub bindings for v3 (#419)
Co-authored-by: Sergio Moya <[email protected]>
- Loading branch information
1 parent
3a5b6eb
commit bcab68c
Showing
4 changed files
with
142 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "http://asyncapi.com/bindings/googlepubsub/0.2.0/channel.json", | ||
"title": "Cloud Pub/Sub Channel Schema", | ||
"description": "This object contains information about the channel representation for Google Cloud Pub/Sub.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
"^x-[\\w\\d\\.\\x2d_]+$": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" | ||
} | ||
}, | ||
"properties": { | ||
"bindingVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"0.2.0" | ||
], | ||
"description": "The version of this binding." | ||
}, | ||
"labels": { | ||
"type": "object" | ||
}, | ||
"messageRetentionDuration": { | ||
"type": "string" | ||
}, | ||
"messageStoragePolicy": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"allowedPersistenceRegions": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"schemaSettings": { | ||
"type": "object", | ||
"additionalItems": false, | ||
"properties": { | ||
"encoding": { | ||
"type": "string" | ||
}, | ||
"firstRevisionId": { | ||
"type": "string" | ||
}, | ||
"lastRevisionId": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"encoding", | ||
"name" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"schemaSettings" | ||
], | ||
"examples": [ | ||
{ | ||
"labels": { | ||
"label1": "value1", | ||
"label2": "value2" | ||
}, | ||
"messageRetentionDuration": "86400s", | ||
"messageStoragePolicy": { | ||
"allowedPersistenceRegions": [ | ||
"us-central1", | ||
"us-east1" | ||
] | ||
}, | ||
"schemaSettings": { | ||
"encoding": "json", | ||
"name": "projects/your-project-id/schemas/your-schema" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "http://asyncapi.com/bindings/googlepubsub/0.2.0/message.json", | ||
"title": "Cloud Pub/Sub Channel Schema", | ||
"description": "This object contains information about the message representation for Google Cloud Pub/Sub.", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"patternProperties": { | ||
"^x-[\\w\\d\\.\\x2d_]+$": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" | ||
} | ||
}, | ||
"properties": { | ||
"bindingVersion": { | ||
"type": "string", | ||
"enum": [ | ||
"0.2.0" | ||
], | ||
"description": "The version of this binding." | ||
}, | ||
"attributes": { | ||
"type": "object" | ||
}, | ||
"orderingKey": { | ||
"type": "string" | ||
}, | ||
"schema": { | ||
"type": "object", | ||
"additionalItems": false, | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["name"] | ||
} | ||
}, | ||
"examples": [ | ||
{ | ||
"schema": { | ||
"name": "projects/your-project-id/schemas/your-avro-schema-id", | ||
} | ||
}, | ||
{ | ||
"schema": { | ||
"name": "projects/your-project-id/schemas/your-protobuf-schema-id", | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters