lib/stackone/models/shared/questionnaire.rb in stackone_client-0.0.2 vs lib/stackone/models/shared/questionnaire.rb in stackone_client-0.0.3
- old
+ new
@@ -11,15 +11,15 @@
class Questionnaire < ::StackOne::Utils::FieldAugmented
extend T::Sig
- field :answers, T::Array[Shared::Answer], { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('answers') } }
+ field :answers, T.nilable(T::Array[Shared::Answer]), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('answers') } }
# Unique identifier of the questionnaire
field :id, T.nilable(String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } }
- sig { params(answers: T::Array[Shared::Answer], id: T.nilable(String)).void }
+ sig { params(answers: T.nilable(T::Array[Shared::Answer]), id: T.nilable(String)).void }
def initialize(answers: nil, id: nil)
@answers = answers
@id = id
end
end