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

fixing bug related to Issue #457 #469

Merged

Conversation

sachin-shrestha
Copy link
Collaborator

What type of PR is this?
/kind bug

What this PR does / why we need it:
ObjectType.schema.json is missing the enum TX_ISSUER_AUTHORIZED_SHARES_ADJUSTMENT, resulting in a failure when validating sample data.
IssuerTransaction.schema.json references required field stock_class_id when it's not in the properties, should be issuer_id

@sachin-shrestha sachin-shrestha linked an issue Feb 26, 2024 that may be closed by this pull request
@sachin-shrestha
Copy link
Collaborator Author

@JSv4 or @pjohnmeyer ...can one of you review please?

@JSv4
Copy link
Contributor

JSv4 commented Feb 26, 2024

On it @sachin-shrestha

@JSv4 JSv4 self-requested a review February 26, 2024 20:37
@JSv4
Copy link
Contributor

JSv4 commented Feb 26, 2024

Thanks, @sachin-shrestha, this all looks good to me. Is this something you need merged? If not, I'd like to revisit our versioning tomorrow. We wanted to more formally document that for a while. Since this would technically be a breaking change - even though it fixes a bug - I want to make sure we either (a) version up as appropriate or (b) have a sane and documented policy for the versioning. @pjohnmeyer, would love your thoughts on this.

FYI, I also opened a new issue #470 to add some structural validation checks to catch both of the issues you fixed here. There's no reason they should have made it through the test suite.

@@ -10,6 +10,6 @@
"type": "string"
}
},
"required": ["stock_class_id"],
"required": ["issuer_id"],
Copy link
Contributor

Choose a reason for hiding this comment

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

We should also improve the description for the actual issuer transaction to make it clearer how it's being used

@JSv4
Copy link
Contributor

JSv4 commented Feb 27, 2024

Let's also have a sample here too in the sample transactions file.

@jacobyavis
Copy link
Collaborator

Added samples, and the description looked okay but I made a minor change

@JSv4 JSv4 merged commit 57f7fed into main Mar 26, 2024
6 checks passed
@JSv4 JSv4 deleted the 457-bug-fixing-issuer-authorized-shares-adjustment-validation branch March 26, 2024 14:33
@pjohnmeyer
Copy link
Member

Since this would technically be a breaking change - even though it fixes a bug

Just noting for posterity that this was not a breaking change because this object did not exist in v1.1.0.

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.

[Bug]: Fixing Issuer Authorized Shares Adjustment Validation
4 participants