Sha256: 04a9052a753970a687c5857da1a0565ca9dc361bcb25b46986cffbc0db5b4e0a

Contents?: true

Size: 529 Bytes

Versions: 50

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Forms
    class AnswerOptionType < Decidim::Api::Types::BaseObject
      description "An answer option for a multi-choice question in a questionnaire"

      field :id, GraphQL::Types::ID, "ID of this answer option", null: false
      field :body, Decidim::Core::TranslatedFieldType, "The text answer response option.", null: false
      field :free_text, GraphQL::Types::Boolean, "Whether if this answer accepts any free text from the user.", null: false
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-forms-0.29.1 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.4 lib/decidim/api/answer_option_type.rb
decidim-forms-0.27.9 lib/decidim/api/answer_option_type.rb
decidim-forms-0.29.0 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.3 lib/decidim/api/answer_option_type.rb
decidim-forms-0.27.8 lib/decidim/api/answer_option_type.rb
decidim-forms-0.29.0.rc4 lib/decidim/api/answer_option_type.rb
decidim-forms-0.29.0.rc3 lib/decidim/api/answer_option_type.rb
decidim-forms-0.29.0.rc2 lib/decidim/api/answer_option_type.rb
decidim-forms-0.29.0.rc1 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.2 lib/decidim/api/answer_option_type.rb
decidim-forms-0.27.7 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.1 lib/decidim/api/answer_option_type.rb
decidim-forms-0.27.6 lib/decidim/api/answer_option_type.rb
decidim-forms-0.26.10 lib/decidim/api/answer_option_type.rb
decidim-forms-0.26.9 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.0 lib/decidim/api/answer_option_type.rb
decidim-forms-0.27.5 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.0.rc5 lib/decidim/api/answer_option_type.rb
decidim-forms-0.28.0.rc4 lib/decidim/api/answer_option_type.rb