Sha256: 176f8973c97e1a37ff4095c2c83dfd0ceaaf0839b700e9fbe105a75852739317

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require_relative 'markdown_extractor'
require_relative 'serializer'

module Inferno
  module Web
    module Serializers
      class Input < Serializer
        identifier :name

        field :title, if: :field_present?
        field :description, extractor: MarkdownExtractor, if: :field_present?
        field :type, if: :field_present?
        field :default, if: :field_present?
        field :optional, if: :field_present?
        field :options, if: :field_present?
        field :locked, if: :field_present?
        field :value, if: :field_present?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.6.0 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.5.4 lib/inferno/apps/web/serializers/input.rb
inferno_core-0.5.3 lib/inferno/apps/web/serializers/input.rb