Skip to content

Add command to print simplified visualization of schemas#103

Merged
just-be-dev merged 3 commits intomainfrom
add-codegen-debugging-tools
Jan 26, 2025
Merged

Add command to print simplified visualization of schemas#103
just-be-dev merged 3 commits intomainfrom
add-codegen-debugging-tools

Conversation

@just-be-dev
Copy link
Copy Markdown
Owner

Pulled out of #78

This PR adds a printer and debug command to the generation setup. You can use mise run print-schema to invoke it or mise run print-schema WebViewOptions to print a single schema.

The output looks like this

Response
│   description: Responses from the webview to the client.
└── discriminated-union (by $type)
    ├── ack
    │   └── id: string
    ├── result
    │   ├── id: string
    │   └── result: ResultType
    └── err
        ├── id: string
        └── message: string

@just-be-dev just-be-dev merged commit 342cb9d into main Jan 26, 2025
@just-be-dev just-be-dev deleted the add-codegen-debugging-tools branch January 26, 2025 18:09
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