asyncapi / asyncapi/jasyncapi-idea-plugin

[FEATURE] Please support *.json5 extension

Open
#178 6 comments 0 reactions 1 assignee Claimed by @Pakisan View on GitHub
enhancement
Dominant language
Kotlin
Stars
16
Forks
7
Avg merge
1m
Merged PRs (30d)
5

Description

### Why do we need this improvement?

I love to use JSON5 instead of json because I can add comments. When I change the extension from "json" to "json5" the file is still recognized as AsyncAPI file, but the preview stops working, same for the validation

![Image](https://github.com/user-attachments/assets/4aa1fab0-74ec-468f-8422-8776852eb545)

This also happens when there actually aren't any comments in the file.

### How will this change help?

User could comment their files, having trailing commas etc.

### Screenshots

_No response_

### How could it be implemented/designed?

Internally convert JSON5 to JSON before processing it.

### 🚧 Breaking changes

No

### 👀 Have you checked for similar open issues?

- [x] I checked and didn't find a similar issue

### 🏢 Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md)

### Are you willing to work on this issue?

None

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.