Sha256: 7e7f60621aa206ff4675bcf1e0f0f6c2c84993ff2bc992c25e99174e85278bc5
Contents?: true
Size: 591 Bytes
Versions: 10
Compression:
Stored size: 591 Bytes
Contents
# frozen_string_literal: true require "json_schematize" require "json_schematize/generator" require "slack_bot/events/schemas/type/item" module SlackBot module Events module Schemas module Type class Element < JsonSchematize::Generator schema_default option: :dig_type, value: :string add_field name: :type, type: String add_field name: :elements, type: SlackBot::Events::Schemas::Type::Element, array_of_types: true, required: false add_field name: :text, type: String, required: false end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems