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

feat: add TypeScript schema #15

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

feat: add TypeScript schema #15

wants to merge 1 commit into from

Conversation

moretti
Copy link
Member

@moretti moretti commented Sep 5, 2023

I've started the process of extracting a TypeScript schema for prototype events, utilising the JSON Schema as the source of truth.

Currently, prototype events are typed as any within the mkiii mono repo, making it challenging to work with them in functions. Moreover, the JSON Schema is quite verbose and complex to understand (~180 lines are equivalent to the other 25 JSON files in the repository).

Ideally we should consider transitioning to TypeScript as the primary source of truth, similar to how we validate user test data within the mono repo. However, given that we have a Python package in the repository, we could also consider keeping TypeScript as our source of truth and create a script to generate the JSON schema when needed.

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.

1 participant