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

#55 , Implement document types #89

Merged
merged 4 commits into from
Dec 14, 2023
Merged

#55 , Implement document types #89

merged 4 commits into from
Dec 14, 2023

Conversation

mohamedsalem401
Copy link
Contributor

Given a schema like this:

{
  blog: z.object({
    title: z.string(),
    tags: z.array(z.string()).min(1),
  }),
}
  • It compares files in the blog directory to this schema.
  • It raises errors if a field is missing or has the wrong value. ( error: missing title field in blog/post.md )
  • It doesn't change the output yet (i.e., no effect in the SQL or JSON files).

Example of the output:
image

Copy link

changeset-bot bot commented Dec 12, 2023

⚠️ No Changeset found

Latest commit: 1686579

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member

@rufuspollock rufuspollock left a comment

Choose a reason for hiding this comment

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

Nice and simple. Looks ok to me.

@rufuspollock rufuspollock merged commit acb5183 into main Dec 14, 2023
2 of 3 checks passed
@mohamedsalem401 mohamedsalem401 deleted the document-types branch February 8, 2024 02:07
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.

2 participants