Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Proto Validation for Block #1905

Merged
merged 3 commits into from
Dec 5, 2018
Merged

Conversation

Akvinikym
Copy link
Contributor

Description of the Change

After one_of version field was added to Block, it started needing a protocol validation, which would check, if this field is set.

Benefits

Ill-formed Blocks are not allowed

Possible Drawbacks

None.

Usage Examples or Tests [optional]

proto_block_validator_test was added.

Signed-off-by: Akvinikym <anarant12@gmail.com>
@Akvinikym Akvinikym changed the base branch from master to trunk/block-oneof December 3, 2018 14:37
Copy link
Contributor

@nickaleks nickaleks left a comment

Choose a reason for hiding this comment

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

please fix minor issue and build


namespace shared_model {
namespace validation {
class ProtoBlockValidator
Copy link
Contributor

Choose a reason for hiding this comment

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

Please split into cpp and hpp

Signed-off-by: Akvinikym <anarant12@gmail.com>
Signed-off-by: Akvinikym <anarant12@gmail.com>
@Akvinikym Akvinikym merged commit fd87aa5 into trunk/block-oneof Dec 5, 2018
@Akvinikym Akvinikym deleted the feature/oneof-block-vld branch December 5, 2018 07:13
kamilsa pushed a commit that referenced this pull request Dec 12, 2018
* Proto Validator is added

Signed-off-by: Akvinikym <anarant12@gmail.com>

* Review issues

Signed-off-by: Akvinikym <anarant12@gmail.com>

* Review issues 2

Signed-off-by: Akvinikym <anarant12@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants