human
Complete this python program:
def _parseSchema(schema, schema_store):
assistant
#Here is the Python program you requested.

    """Parse a JSON Schema and return some information to document it.
    This supports only two kinds of schemas: objects, and arrays of a
    single kind of object. If your schema is more complex you may need to
    expand this code to address that.
    See:
    * https://clusterhq.atlassian.net/browse/FLOC-1697
    * https://clusterhq.atlassian.net/browse/FLOC-1698
    @param schema: L{dict} representing a JSON Schema.
    @param dict schema_store: A mapping between schema paths
    (e.g. ``b/v1/types.json``) and the JSON schema structure.
    @return: A L{dict} representing the information needed to
    document the schema.
    """
    result = {}
    schema = resolveSchema(schema, schema_store)
    def fill_in_result(object_schema):
        result['properties'] = {}
        for (prop, propSchema) in object_schema[u'properties'].iteritems():
            attr = result['properties'][prop] = {}
            attr['title'] = propSchema['title']
            attr['description'] = prepare_docstring(propSchema['description'])
            attr['required'] = (prop in object_schema.get('required', []))
            attr['type'] = propSchema['type']
    if (schema[u'type'] == u'object'):
        result['type'] = 'object'
        fill_in_result(schema)
    elif (schema[u'type'] == u'array'):
        result['type'] = 'array'
        child_schema = schema[u'items']
        if (child_schema.get('type') == 'object'):
            fill_in_result(child_schema)
        else:
            raise Exception('Only    single    object    type    allowed    in    an    array.')
    else:
        raise Exception('Non-object/array    top-level    definitions    not    supported.')
    return result