MessagePack Parser

The MessagePack parser is used for parsing incoming MessagePack data. To use it set decoder to msgpack. Fields can be mapped to a different name by using the field names in your schema’s source.

Example

Incoming data (displayed as JSON for readability):

{
  "first_name": "Alice",
  "age": 29
}

Decoder configuration:

decoder: msgpack
schema:
  type: object
  properties:
    name:
      type: string
      source: first_name
    age:
      type: integer

Output:

name: Alice
age: 29