Skip to content

Improve missing global contract error message#65

Merged
DZakh merged 1 commit into
mainfrom
dz/improve-missing-global-contract-err
Jul 11, 2024
Merged

Improve missing global contract error message#65
DZakh merged 1 commit into
mainfrom
dz/improve-missing-global-contract-err

Conversation

@DZakh

@DZakh DZakh commented Jul 10, 2024

Copy link
Copy Markdown
Member

Before:

image

After:

image

@DZakh DZakh requested review from JasoonS and JonoPrest July 10, 2024 12:48
@github-actions

Copy link
Copy Markdown

Here's the diff of the codegen output.🙌🧠🦜

type NetworkId = u64;

#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, JsonSchema)]
#[serde(deny_unknown_fields)]

@JasoonS JasoonS Jul 10, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we can put deny unknown fields everywhere besides in the top level - because it could be nice for a user to put some of their own config somewhere in the file also.

Although, they can just make their own config files, so I guess it doesn't matter if it is everywhere 👍 And less error prone

@DZakh DZakh merged commit c4324e1 into main Jul 11, 2024
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.

2 participants