Azure / Azure/azure-rest-api-specs

[spec-model] Use `@apidevtools/swagger-parser`

Open
#38,690 0 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Replace our custom `zod` schema with `@apidevtools/swagger-parser`:

https://github.com/Azure/azure-rest-api-specs/blob/833aeb9992144f6e04d99de1316a7f37a001ee94/.github/shared/src/swagger.js#L53-L57

This dependency is already used by `oav`, so it should handle all our existing swaggers.

WIP: https://github.com/mikeharder/azure-rest-api-specs/tree/spec-model-swagger-parser

Failing our unit tests, so maybe not worth migrating.

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.