class Babl::Schema::FixedArray

Constants

EMPTY

Public Instance Methods

json() click to toggle source
# File lib/babl/schema/fixed_array.rb, line 9
def json
    if items.empty?
        { enum: [Utils::Array::EMPTY] }
    else
        { type: 'array', items: items.map(&:json), additionalItems: false }
    end
end