Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-423

Enhance validation to make it work with internal messages

    XMLWordPrintable

Details

    • Story
    • Status: New
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Some messages can have other messages as fields and these messages should be validated. For example MessageRep has 'params' field which contains messages of specific type. As of now they are validated using external logic, take a look at MessageReq nad CurrentState message handlers at node. This approach is not consistent.

      Steps:

      1. Make message validator be able to validate internal messages
      (it is partially implemented, take a look at MessageField class)

      2. Make message validator set parsed values as its fields instead of raw values

      Attachments

        Activity

          People

            Unassigned Unassigned
            mzk-vct Victor Muzychenko
            Victor Muzychenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: