[PutRequestResponseSchemeArm] False positive due to bug in utils.isSchemaEqual()

Open
#752 1 comment 0 reactions 1 assignee View on GitHub

@AkhilaIlla is already working on this.

Since Oct 27, 2025.

Assessment

This issue has not been assessed yet.

Description

In this check run, run PutRequestResponseSchemeArm appears to fail with a false positive, since the schemas are indeed identical. I believe the bug is in helper function utils.isSchemaEqual():

https://github.com/Azure/azure-openapi-validator/blob/edb65591d5ab85871f880e48b2ad6302186014b8/packages/rulesets/src/spectral/functions/utils.ts

Image

Even if the schemas are equal, if one of the property values is null, it will cause isSchemaEqual() to fail, which looks like a bug to me. Unless there's some reason this behavior was chosen intentionally.

Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/azure-openapi-validator

All issues in Azure/azure-openapi-validator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.