Skip to content

[spec-model] Use @apidevtools/swagger-parserΒ #38690

@mikeharder

Description

@mikeharder

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

// https://swagger.io/specification/v2/#swagger-object
const swaggerSchema = z.object({
paths: pathsSchema.optional(),
"x-ms-paths": pathsSchema.optional(),
});

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

πŸ“‹ Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions