Skip to content

Conversation

@sarthakNITT
Copy link
Contributor

Description

fixed #1813
installed "avsc": "^5.7.9",
code changes in ./src/commands/validate.ts file

@changeset-bot
Copy link

changeset-bot bot commented Aug 2, 2025

🦋 Changeset detected

Latest commit: 984d637

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

Changeset has been generated for this PR as part of auto-changeset workflow.

Please review the changeset before merging the PR.
---
'@asyncapi/cli': minor
---

feat: validate Avro schemas in AsyncAPI files using CLI

- cafcc85: feat: added avro validation

If you are a maintainer or the author of the PR, you can change the changeset by clicking here

Tip

If you don't want auto-changeset to run on this PR, you can add the label skip-changeset to the PR or remove the changeset and change PR title to something other than fix: or feat:.

asyncapi-bot pushed a commit to sarthakNITT/cli that referenced this pull request Aug 2, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2025

@sarthakNITT
Copy link
Contributor Author

Hi @Souvikns,

Can you please review the pr.

Comment on lines 67 to 69
if (schemaFormat?.startsWith('application/vnd.apache.avro')) {
try {
avro.Type.forSchema(schema);

Choose a reason for hiding this comment

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

The mime type can also contain the Avro version. Is this not also needed for the validation of Avro?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 4, 2025

@sarthakNITT
Copy link
Contributor Author

@Lazzaretti That file is removed in the latest commit. Made changes and have raised a pr, please review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Triage

Development

Successfully merging this pull request may close these issues.

[FEATURE] Avro Validation

2 participants