Skip to content
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

fix: missing/invalid required field #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xJonathanLEI
Copy link
Contributor

Fixes a long-standing issue where the absence of required is ambiguous: it could either mean all fields are optional, or that none of them are:

  • missing required in the declared_classes field names they are always present.
  • missing required in TXN_RECEIPT_WITH_BLOCK_INFO means they're all optional.

This makes code generation really difficult as codegen tools have to make external assumptions on what the intended behavior is.

With this PR, now all properties are always paired with a valid required field.

@ArielElp ArielElp self-requested a review May 1, 2024 14:37
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.

1 participant