   ], cb
 
 
+# Turns multiple *Element* nodes containing array or enum item into
+# 'resolved item' objects with both representation in JSON Schema and
+# optionally also some additional info.
 resolveItems = (items, inherited, cb) ->
   async.mapSeries items, (item, next) ->
     resolveItem item, inherited, next

  ], cb


inspectEnumItems = (items, nestedTypeName, cb) ->
  async.waterfall [
    (next) -> groupItemsByPrimitiveTypes items, nestedTypeName, next



# Turns *Element* node containing array or enum item into a 'resolved item'
# object with both representation in JSON Schema and optionally also
# some additional info.
resolveItem = (item, inherited, cb) ->
  async.waterfall [
