app/models/try_api/parameter.rb in try_api-0.1.6 vs app/models/try_api/parameter.rb in try_api-0.1.7

- old
+ new

@@ -2,8 +2,9 @@ class Parameter < TryApi::Base typesafe_accessor :name, String typesafe_accessor :type, String typesafe_accessor :parameters, Array, default: [], items_type: TryApi::Parameter typesafe_accessor :required, Boolean, default: true + typesafe_accessor :custom, Boolean, default: false, if: -> { self.type == 'object' } typesafe_accessor :description, String end end \ No newline at end of file