Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

fix: broken openapi specs/validation middleware #241

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

albertyfwu
Copy link
Contributor

Most of the issues here are due to ajv having a bug and interpreting id: <uuid> as schema id even when they're used in examples. See stoplightio/spectral#2081

Also, we seem to be mixing openapi 3.0.3 and 3.1.0 syntax for examples, which we should clean up at some point.

@vercel
Copy link

vercel bot commented Mar 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
supaglue-docs ⬜️ Ignored (Inspect) Mar 10, 2023 at 4:41PM (UTC)

import { Router } from 'express';
import customer from './customer';
import integration from './integration';

export default function init(app: Router): void {
const v1Router = Router();

v1Router.use(openapiMiddleware('mgmt'));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was the main issue that was not caused by ajv issues

@albertyfwu albertyfwu merged commit 454aa14 into main Mar 10, 2023
@albertyfwu albertyfwu deleted the albert/fix_openapi branch March 10, 2023 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants