Apipie / apipie-rails

Ruby on Rails API documentation tool
Apache License 2.0
2.47k stars 460 forks source link

array_of property is always required (ignoring required: false) #709

Closed jankmet closed 1 year ago

jankmet commented 3 years ago
def_param_group :Item do
  property :id, :number
  property :name, String
  property :description, String, required: false
  property :referenced_ids, array_of: :number, required: false
end

description is optional, but referenced_ids is required (apipie, swagger)

ghillahill commented 1 year ago

I have the same issue, setting the property to required: false, but I get required true in the swagger. Any update?

PanosCodes commented 1 year ago

@ghillahill could you test https://github.com/Apipie/apipie-rails/pull/863 ?

ghillahill commented 1 year ago

@PanosCodes works fine. Thank you.