Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Loop through and validate articles’ JSON representations #22

@mxdvl

Description

@mxdvl

repo: https://github.com/mxdvl/dcr-json-comparison
people: @mxdvl

What is this project about

Look for articles and check whether their JSON representation is valid.

Compare the result of validating with Ajv and parsing with Zod.

The most interesting parts of this code are:

  • using an async generator to get an infinite stream of articles from CAPI
  • saving the data to disk to allow the script to be stopped with no data loss

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions