Skip to content

Proposal A for JSON Schema generation #19

Draft
Mearman wants to merge 6 commits into
obsidianmd:mainfrom
Mearman:10-json-schema-A
Draft

Proposal A for JSON Schema generation #19
Mearman wants to merge 6 commits into
obsidianmd:mainfrom
Mearman:10-json-schema-A

Conversation

@Mearman
Copy link
Copy Markdown

@Mearman Mearman commented Mar 14, 2024

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

Mearman added 6 commits March 13, 2024 22:58
…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