Azure / Azure/azure-rest-api-specs
[spec-model] Use `@apidevtools/swagger-parser`
Open
- 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
Assessment
This issue has not been assessed yet.