Skip to content

Update the price schema #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2022
Merged

Conversation

ali-behjati
Copy link
Collaborator

@ali-behjati ali-behjati commented Oct 6, 2022

This is happening because we are not storing a lock file and apparently a newer version of a packaged changes the output of our schema generation code.

The reason for not having lock file in git is that lib crates don't have lock files at all. Not having it in github allows us to catch problems that could happen for downstream consumers. However, this particular one, would not had any impact on downstream consumers.

The schema change itself is very weird and strange, the old one seems to be more accurate semantically.
More context after looking deeper:

It’s using cosmwasm-schema which uses schemars to generate it. It seems that they have this PR that changed it (as a minor version upgrade) and is the exact root cause of our problem. They have made the change to handle descriptions for each enum field 🤯

@ali-behjati ali-behjati requested review from Reisen and tompntn October 6, 2022 08:56
@ali-behjati ali-behjati force-pushed the abehjati/fix-price-schema-update branch from 489c0dc to 8951952 Compare October 6, 2022 09:13
@ali-behjati ali-behjati merged commit 37604d2 into main Oct 6, 2022
@ali-behjati ali-behjati deleted the abehjati/fix-price-schema-update branch October 6, 2022 09:26
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