def METHOD_NAME(output, field, field_path):
    if "field_path" not in field:
        field["field_path"] = field_path
    output.write("*`{}`*::\n+\n--\n".format(field["field_path"]))
    if "deprecated" in field:
        output.write("\ndeprecated:[{}]\n\n".format(field["deprecated"]))
    if "description" in field:
        output.write("{}\n\n".format(field["description"]))
    if "type" in field:
        output.write("type: {}\n\n".format(field["type"]))
    if "example" in field:
        output.write("example: {}\n\n".format(field["example"]))
    if "format" in field:
        output.write("format: {}\n\n".format(field["format"]))
    if "required" in field:
        output.write("required: {}\n\n".format(field["required"]))
    if "path" in field:
        output.write("alias to: {}\n\n".format(field["path"]))
    # For Apm-Server docs only
    # Assign an ECS badge for ECS fields
    if beat_title == "Apm-Server":
        if field_path in ecs_fields():
            output.write("{yes-icon} {ecs-ref}[ECS] field.\n\n")
    if "index" in field:
        if not field["index"]:
            output.write("{}\n\n".format("Field is not indexed."))
    if "enabled" in field:
        if not field["enabled"]:
            output.write("{}\n\n".format("Object is not enabled."))
    output.write("--\n\n")
    if "multi_fields" in field:
        for subfield in field["multi_fields"]:
            METHOD_NAME(output, subfield, field_path + "." +
                           subfield["name"])