Sha256: 09841693d3c2dc4d921c36537ed0829851d8f34cc92abdda5d9cc2ca28561438
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 Bytes
Contents
# experiments/agents/header_schema.rb require 'simple_json_schema_builder' require_relative 'timestamp' class Agent99::HeaderSchema < SimpleJsonSchemaBuilder::Base object do string :from_uuid, required: true, examples: [SecureRandom.uuid] string :to_uuid, required: true, examples: [SecureRandom.uuid] string :event_uuid, required: true, examples: [SecureRandom.uuid] string :type, required: true, examples: %w[request response control] integer :timestamp, required: true, examples: [Agent99::Timestamp.new.to_i] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
agent99-0.0.2 | lib/agent99/header_schema.rb |
agent99-0.0.1 | lib/agent99/header_schema.rb |