-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update examples to v3 #947
Merged
asyncapi-bot
merged 10 commits into
asyncapi:next-major-spec
from
jonaslagoni:update_examples
Aug 2, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
34d4d47
initial change
jonaslagoni 0678814
update examples
jonaslagoni 7ef00c4
update examples
jonaslagoni 5ab431d
Merge branch 'next-major-spec' into update_examples
jonaslagoni 631846e
update examples
jonaslagoni 2fb822f
manually change common servers
jonaslagoni 027c5b0
Merge branch 'next-major-spec' into update_examples
jonaslagoni 532989c
Merge branch 'next-major-spec' into update_examples
jonaslagoni ed791d0
update adeo example
jonaslagoni 3bfbba9
fix kraken v3 example
jonaslagoni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -7,40 +7,41 @@ info: | |
contact: | ||
name: AsyncAPI team | ||
email: [email protected] | ||
tags: | ||
- name: costing | ||
description: "Costing channels, used by Costing clients." | ||
servers: | ||
production: | ||
url: "prod.url:9092" | ||
host: "prod.url:9092" | ||
protocol: kafka-secure | ||
description: Kafka PRODUCTION cluster | ||
security: | ||
- sasl-ssl: [] | ||
- $ref: '#/components/securitySchemes/sasl-ssl' | ||
bindings: | ||
kafka: | ||
schemaRegistryUrl: >- | ||
https://schema-registry.prod.url/ | ||
staging: | ||
url: "staging.url:9092" | ||
host: "staging.url:9092" | ||
protocol: kafka-secure | ||
description: Kafka STAGING cluster for `uat` and `preprod` environments | ||
security: | ||
- sasl-ssl: [] | ||
- $ref: '#/components/securitySchemes/sasl-ssl' | ||
bindings: | ||
kafka: | ||
schemaRegistryUrl: >- | ||
https://schema-registry.staging.url/ | ||
dev: | ||
url: "dev.url:9092" | ||
host: "dev.url:9092" | ||
protocol: kafka-secure | ||
description: Kafka DEV cluster for `dev` and `sit` environments | ||
security: | ||
- sasl-ssl: [] | ||
- $ref: '#/components/securitySchemes/sasl-ssl' | ||
bindings: | ||
kafka: | ||
schemaRegistryUrl: >- | ||
https://schema-registry.dev.url/ | ||
tags: | ||
- name: costing | ||
description: "Costing channels, used by Costing clients." | ||
|
||
channels: | ||
costingRequest: | ||
address: "adeo-{env}-case-study-COSTING-REQUEST-{version}" | ||
|
@@ -64,9 +65,9 @@ channels: | |
kafka: | ||
replicas: 3 | ||
partitions: 3 | ||
topicConfiguration | ||
cleanup.policy: delete | ||
retention.ms: 7 days | ||
topicConfiguration: | ||
cleanup.policy: [ "delete" ] | ||
retention.ms: 604800000 | ||
messages: | ||
costingRequest: | ||
$ref: "#/components/messages/costingRequestV1" | ||
|
@@ -98,12 +99,6 @@ channels: | |
$ref: "#/components/parameters/Version" | ||
bindings: | ||
kafka: | ||
groupId: | ||
type: string | ||
description: > | ||
The groupId must be prefixed by your `svc` account, deliver by the | ||
Adeo Kafka team. | ||
This `svc` must have the read access to the topic. | ||
x-key.subject.name.strategy: | ||
type: string | ||
description: > | ||
|
@@ -125,7 +120,6 @@ channels: | |
|
||
|
||
|
||
|
||
operations: | ||
requestCosting: | ||
action: receive | ||
|
@@ -135,7 +129,7 @@ operations: | |
channel: | ||
$ref: '#/channels/costingResponse' | ||
address: | ||
locaton: '$message.header#/REPLY_TOPIC' | ||
location: '$message.header#/REPLY_TOPIC' | ||
summary: | | ||
[COSTING] Request one or more Costing calculation for any product | ||
description: > | ||
|
@@ -165,6 +159,14 @@ operations: | |
summary: > | ||
[COSTING] Get the costing responses matching an initial Costing | ||
Request. | ||
bindings: | ||
kafka: | ||
groupId: | ||
type: string | ||
description: > | ||
The groupId must be prefixed by your `svc` account, deliver by the | ||
Adeo Kafka team. | ||
This `svc` must have the read access to the topic. | ||
tags: | ||
- name: costing | ||
|
||
|
@@ -188,7 +190,6 @@ components: | |
summary: Costing Request V1 inputs. | ||
tags: | ||
- name: costing | ||
schemaFormat: application/vnd.apache.avro;version=1.9.0 | ||
correlationId: | ||
$ref: "#/components/correlationIds/costingCorrelationId" | ||
headers: | ||
|
@@ -208,7 +209,9 @@ components: | |
REQUESTER_CODE: | ||
$ref: "#/components/schemas/RequesterCode" | ||
payload: | ||
$ref: "https://deploy-preview-921--asyncapi-website.netlify.app/resources/casestudies/adeo/CostingRequestPayload.avsc" | ||
schemaFormat: application/vnd.apache.avro;version=1.9.0 | ||
schema: | ||
$ref: "https://www.asyncapi.com/resources/casestudies/adeo/CostingRequestPayload.avsc" | ||
costingResponse: | ||
name: CostingResponse | ||
title: Costing Response | ||
|
@@ -219,7 +222,6 @@ components: | |
Please refer to the `CostingResponseKey.avsc` schema, available on [our | ||
github | ||
project](https://github.url/). | ||
schemaFormat: application/vnd.apache.avro;version=1.9.0 | ||
correlationId: | ||
$ref: "#/components/correlationIds/costingCorrelationId" | ||
headers: | ||
|
@@ -242,7 +244,9 @@ components: | |
key: | ||
$ref: "https://deploy-preview-921--asyncapi-website.netlify.app/resources/casestudies/adeo/CostingResponseKey.avsc" | ||
payload: | ||
$ref: "https://deploy-preview-921--asyncapi-website.netlify.app/resources/casestudies/adeo/CostingResponsePayload.avsc" | ||
schemaFormat: application/vnd.apache.avro;version=1.9.0 | ||
schema: | ||
$ref: "https://deploy-preview-921--asyncapi-website.netlify.app/resources/casestudies/adeo/CostingResponsePayload.avsc" | ||
schemas: | ||
RequesterId: | ||
type: string | ||
|
@@ -303,20 +307,17 @@ components: | |
parameters: | ||
Env: | ||
description: Adeo Kafka Environement for messages publications. | ||
schema: | ||
type: string | ||
enum: | ||
enum: | ||
- dev | ||
- sit | ||
- uat1 | ||
- preprod | ||
- prod | ||
Version: | ||
description: the topic version you want to use | ||
schema: | ||
type: string | ||
example: V1 | ||
default: V1 | ||
examples: | ||
- V1 | ||
default: V1 | ||
securitySchemes: | ||
sasl-ssl: | ||
type: plain | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonaslagoni
#112
is missing here, otherwise the meaning is not correct.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, it's a bug with the converter 🤔
Mind adding a bug issue?