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

Verify schema compliance on books collection read/write #320

Open
amyjko opened this issue Feb 18, 2023 · 0 comments
Open

Verify schema compliance on books collection read/write #320

amyjko opened this issue Feb 18, 2023 · 0 comments
Assignees
Labels
defect Something isn't working as intended
Milestone

Comments

@amyjko
Copy link
Owner

amyjko commented Feb 18, 2023

While TypeScript prevents a lot of issues with schema compliance, there are a number of ways that malformed book/edition metadata might sneak into the database:

  • Schema changes that aren't correctly propagated to production data
  • Future functionality that imports books

We use AJV to do schema validation when compiling books; we should do the same each time we read a book for display and before we write a book for display.

@amyjko amyjko added the defect Something isn't working as intended label Feb 18, 2023
@amyjko amyjko added this to the 1.0 milestone Feb 18, 2023
@amyjko amyjko self-assigned this Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Something isn't working as intended
Projects
Status: Backlog
Development

No branches or pull requests

1 participant