scripts/schema_reader.py
def schema_fields_as_dictionary(schema):
    """Re-nest the array of field names as a dictionary of 'fieldname' => { field definition }"""
    field_array = schema.pop('fields')
    schema['fields'] = {}
    for order, field in enumerate(field_array):
        field['order'] = order
        schema['fields'][field['name']] = field
Re-nest the array of field names as a dictionary of 'fieldname' => { field definition }
Re-nest the array of field names as a dictionary of 'fieldname' => { field definition }
Re - nest the array of field names as a dictionary of ' fieldname ' = > { field definition }
def schema_fields_as_dictionary(schema):
    field_array = schema.pop('fields')
    schema['fields'] = {}
    for order, field in enumerate(field_array):
        field['order'] = order
        schema['fields'][field['name']] = field
def schema_fields_as_dictionary ( schema ) : field_array = schema . pop ( 'fields' ) schema [ 'fields' ] = { } for order , field in enumerate ( field_array ) : field [ 'order' ] = order schema [ 'fields' ] [ field [ 'name' ] ] = field
Re-nest the array of field names as a dictionary of 'fieldname' => { field definition }
Re - nest the array of field names as a dictionary of ' fieldname ' = > { field definition }
"""Re-nest the array of field names as a dictionary of 'fieldname' => { field definition }"""
schema