Skip to content

fix: use JSON Pointer last element as ID for reply.channel and reply.messages[] - #895

Closed
smoya wants to merge 2 commits into
asyncapi:next-major-specfrom
smoya:fix/replyIds
Closed

smoya wants to merge 2 commits into
asyncapi:next-major-specfrom
smoya:fix/replyIds

Conversation

@smoya

@smoya smoya commented Nov 10, 2023 •

Copy link
Copy Markdown
Member

Description

Fixes #873

This PR puts on practice one of the solutions we might opt in for getting Id's on referenced objects via the last element of their JSON Pointer. In this case, we are doing this for the reply.channel and reply.messages[], since in the Operation Reply those are referenced via a JSON Pointer.

I'm also fixing a bug where reply.messages were expected to be a map instead of an array.

Related issue(s)
Fixes #873

Comment thread test/resolver.spec.ts
it('Reply channel + messages[] Ids come from JSON Pointer', async function() {
const parser = new Parser();

const documentRaw = `{

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc is the one @AceTheCreator shared in #873.
We could remove it or adapt it, but we need something to test this anyway.

@smoya
smoya marked this pull request as ready for review November 14, 2023 18:22
@smoya
smoya marked this pull request as draft November 14, 2023 18:22
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this pull request, add a comment with detailed explanation.

There can be many reasons why some specific pull request has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this pull request forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions Bot added the stale label Mar 23, 2024
@smoya smoya removed the stale label Apr 3, 2024
@smoya smoya closed this Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant