{"swagger":"2.0","info":{"title":"apibuilder internal","description":"Internal models used in the implementation of apibuilder","contact":{"name":"Michael Bryzek","url":"http://twitter.com/mbryzek","email":"mbryzek@alum.mit.edu"},"license":{"name":"MIT","url":"http://opensource.org/licenses/MIT"},"version":"0.12.53"},"consumes":["application/json"],"produces":["application/json"],"paths":{},"definitions":{"task":{"type":"object","title":"task","required":["guid","data","number_attempts"],"properties":{"guid":{"type":"string","format":"uuid"},"data":{"$ref":"#/definitions/task_data"},"number_attempts":{"description":"Records the number of times we have attempted to run this task. Commonly we increment number attempts, process the task, and if succeeds we then delete the task. If it fails, we update last_error. This allows us to retry a task say twice; after which we no longer process the task (can notify an admin of the error).","default":"0","type":"integer","format":"int64"},"last_error":{"type":"string"}}},"task_data_diff_version":{"type":"object","title":"task_data_diff_version","required":["old_version_guid","new_version_guid"],"properties":{"old_version_guid":{"type":"string","format":"uuid"},"new_version_guid":{"type":"string","format":"uuid"}}},"task_data_index_application":{"type":"object","title":"task_data_index_application","required":["application_guid"],"properties":{"application_guid":{"type":"string","format":"uuid"}}},"task_data":{"type":"object","title":"task_data","allOf":[{"$ref":"#/definitions/task_data_index_application"},{"$ref":"#/definitions/task_data_diff_version"}]}}}