$schema: http://json-schema.org/draft-04/schema#
description: Schema describing an OpenFlow stats request message, version 1.0
id: of10/ofp_stats_request.json

type: object
required: [header, type, flags, body]
properties:
  header:
    allOf:
      - $ref: definitions.json#/ofp_header
      - properties:
          type:
            enum: [OFPT_STATS_REQUEST]
            default: OFPT_STATS_REQUEST
  type:
    $ref: definitions.json#/ofp_stats_types
  flags:
    type: integer
    minimum: 0
    maximum: 65535
    default: 0
  # TODO: enumerate all the stats types
  body:
    $ref: definitions.json#/data
