Skip to content

[feat] Allow $schema field in tauri.conf.json #3464

@kt215

Description

@kt215

Having a schema for tauri.conf.json would be very helpful.

I made my own schema file based on your documentation and I reference that schema using the $schema field. But your parser doesn't accept the field. As a workaround, I customized the CLI in config.rs and removed deny_unknown_fields to make it work.

I later found out that you do generate a schema.json file from config.rs code automatically. It doesn't have very good enum support right now IMO, but I recommend you make that schema file available and use it in the code examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions