code: def array_to_schema(arr, **options):
      
      (typemap, strict) = _process_options(**options)
  
      arr = list(arr)
      scm = dict(type=typemap[list],
                 items=gen_schema(arr[0] if arr else "str", **options))
      if strict:
          nitems = len(arr)
          scm["minItems"] = nitems
          scm["uniqueItems"] = len(set(arr)) == nitems
  
      return scm
docs: Generate a JSON schema object with type annotation added for given object.
  
      :param arr: Array of mapping objects like dicts
      :param options: Other keyword options such as:
  
          - ac_schema_strict: True if more strict (precise) schema is needed
          - ac_schema_typemap: Type to JSON schema type mappings
  
      :return: Another mapping objects represents JSON schema of items