Skip to content

chore: add TOML schema reference to Dioxus.toml template and examples#5424

Open
rustsoldev wants to merge 1 commit intoDioxusLabs:mainfrom
rustsoldev:feat/dioxus-toml-schema
Open

chore: add TOML schema reference to Dioxus.toml template and examples#5424
rustsoldev wants to merge 1 commit intoDioxusLabs:mainfrom
rustsoldev:feat/dioxus-toml-schema

Conversation

@rustsoldev
Copy link
Copy Markdown

Summary

Closes #5376

Prepends #:schema to the CLI-generated Dioxus.toml template and to existing example projects. IDEs with TOML schema support (e.g. Taplo / Tombi) will now offer autocompletion and inline validation out of the box — no manual configuration needed.

Changed files:

  • packages/cli/assets/dioxus.toml — template used by dx config init, gets the remote schema URL so it works in any new project
  • examples/01-app-demos/file-explorer/Dioxus.toml
  • examples/01-app-demos/hotdog/Dioxus.toml
  • examples/10-integrations/pwa/Dioxus.toml

Example projects use a repo-relative path (../../../packages/cli/schema.json) so the schema stays in sync with local changes during development.

Test plan

  • Run dx config init in a new project and verify the generated Dioxus.toml starts with the schema comment
  • Open any of the updated example Dioxus.toml files in an editor with Taplo/Tombi installed and confirm autocompletion works

🤖 Generated with Claude Code

Prepends the schema comment to the CLI-generated Dioxus.toml template
and to existing example projects. IDEs that support TOML schemas (e.g.
Taplo / Tombi) will now offer autocompletion and validation out of the box.

Closes DioxusLabs#5376

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rustsoldev rustsoldev requested a review from a team as a code owner March 27, 2026 20:46
@jkelleyrtp jkelleyrtp added the cli Related to the dioxus-cli program label Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the dioxus-cli program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add TOML schema to Dioxus.toml templates

2 participants