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

Support $ref siblings #848

Open
leni-msft opened this issue Aug 3, 2022 · 1 comment
Open

Support $ref siblings #848

leni-msft opened this issue Aug 3, 2022 · 1 comment

Comments

@leni-msft
Copy link
Contributor

To align with autorest behavior https://github.com/Azure/autorest/blob/main/docs/openapi/howto/$ref-siblings.md

@mikeharder
Copy link
Member

mikeharder commented Jun 7, 2024

This should be fixed in coordination with Azure/azure-openapi-validator#637.

Siblings of $ref may be either ignored or included, depending on the spec and tool versions: Azure/azure-openapi-validator#706

As long as we're using ajv@6, I think the fix is to change this:

From "fail" to true (https://github.com/ajv-validator/ajv/blob/v6/lib/ajv.d.ts#L180).

This option is removed in ajv@7. See https://github.com/ajv-validator/ajv/releases/tag/v7.0.0, and search for "$ref".

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

No branches or pull requests

4 participants