-
Notifications
You must be signed in to change notification settings - Fork 276
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] #1801: fix schema generation for HashOf, SignatureOf #1804
Conversation
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #1804 +/- ##
==============================================
+ Coverage 77.22% 78.75% +1.53%
==============================================
Files 137 137
Lines 21145 21166 +21
==============================================
+ Hits 16329 16670 +341
+ Misses 4816 4496 -320
Continue to review full report at Codecov.
|
@@ -84,13 +84,6 @@ pub struct RemoveKeyValueBox { | |||
pub key: EvaluatesTo<Name>, | |||
} | |||
|
|||
/// Sized structure for all possible Sets. | |||
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, PartialEq, Eq, IntoSchema)] | |||
pub struct SetBox { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two uses total. Here and in Schema. I would ask the library developers if they use it. If they don't I'd get rid of it.
96332b3
to
07b5315
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about SetBox
, and why coverage dropped 5%. Otherwise LGTM.
@@ -84,13 +84,6 @@ pub struct RemoveKeyValueBox { | |||
pub key: EvaluatesTo<Name>, | |||
} | |||
|
|||
/// Sized structure for all possible Sets. | |||
#[derive(Debug, Clone, Serialize, Deserialize, Encode, Decode, PartialEq, Eq, IntoSchema)] | |||
pub struct SetBox { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two uses total. Here and in Schema. I would ask the library developers if they use it. If they don't I'd get rid of it.
07b5315
to
ec1bf05
Compare
…schemas are missing Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
ec1bf05
to
3dbcb76
Compare
…schemas are missing
Signed-off-by: Marin Veršić marin.versic101@gmail.com
Description of the Change
HashOf
,SignatureOf
Issue
Closes #1801
Benefits
Possible Drawbacks
Usage Examples or Tests [optional]
Alternate Designs [optional]
IntoSchema
macro can be improved to account forPhantomData
fields. Maybe in the future