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

Throw if resource's route path is not defined #150

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

andrii-balitskyi
Copy link
Contributor

@andrii-balitskyi andrii-balitskyi commented Jan 15, 2025

No description provided.

Copy link

vercel bot commented Jan 15, 2025

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

Name Status Preview Comments Updated (UTC)
blueprint ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2025 1:06pm

@andrii-balitskyi andrii-balitskyi marked this pull request as ready for review January 17, 2025 13:53
@andrii-balitskyi andrii-balitskyi requested a review from a team as a code owner January 17, 2025 13:53
Comment on lines +830 to +833
const routePath = schema['x-route-path']
if (routePath == null || routePath.length === 0) {
throw new Error(`Missing route path for ${schemaName}`)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should also validate that the route path actually exists in routes.

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

Successfully merging this pull request may close these issues.

3 participants