Skip to content
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

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

Closed
wants to merge 2 commits into from

Conversation

smoya
Copy link
Member

@smoya smoya commented Nov 10, 2023

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

it('Reply channel + messages[] Ids come from JSON Pointer', async function() {
const parser = new Parser();

const documentRaw = `{
Copy link
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
Copy link

sonarcloud bot commented Nov 23, 2023

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

Copy link

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