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

Proposal A for JSON Schema generation #19

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Mearman
Copy link

@Mearman Mearman commented Mar 14, 2024

resolves #10 based on @mwadams's schema here: #10 (comment)

…pdates. Adjusted file associations in VSCode settings.
- Added a new TypeScript file `generate.ts` to handle the generation of JSON schema from a given TypeScript file. The script validates input parameters, generates a UUID, creates the schema configuration, and writes the resulting JSON schema to an output file.
This commit introduces a new JSON schema file `jsoncanvas.schema.json` that defines the structure of canvas elements like nodes and edges in detail. The schema includes definitions for different types of nodes (text, file, link, group) and edges connecting them. Each element's properties and required fields are specified to ensure proper data validation.
@Mearman Mearman marked this pull request as draft March 15, 2024 15:46
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.

Create JSON Schema to further define and constrain the spec.
1 participant