foundry icon indicating copy to clipboard operation
foundry copied to clipboard

`foundry.toml` schema

Open o-az opened this issue 2 years ago • 3 comments

Component

Other (please describe)

Describe the feature you would like

A JSON schema for foundry.toml

Additional context

I see you have a JSON schema for this: https://github.com/foundry-rs/foundry/blob/master/crates/cheatcodes/assets/cheatcodes.schema.json It would be nice to have a schema for foundry.toml too.

o-az avatar Jan 10 '24 10:01 o-az

I think we could easily add this, but you can get the full json via forge config --json | jq

mattsse avatar Jan 10 '24 10:01 mattsse

Piping it through jq isn't necessary actually since it pretty-prints by default.

But open to adding this otherwise issue should be closed.

Sabnock01 avatar Jan 23 '24 05:01 Sabnock01

Supportive, this will require a bit more work than just deriving Schema since it must be manually implemented/skipped for some internal types

DaniPopes avatar Jan 23 '24 08:01 DaniPopes