From d601dba3312ee0072a4afeeb24fbf93550ecfee7 Mon Sep 17 00:00:00 2001 From: Brian Zoetewey Date: Thu, 21 Nov 2024 15:13:41 -0500 Subject: [PATCH] Fix foreign key on build template with postgresql --- .dredd/hooks/capabilities.go | 1 + api-docs.yml | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.dredd/hooks/capabilities.go b/.dredd/hooks/capabilities.go index cc10ee4c..5eca5f97 100644 --- a/.dredd/hooks/capabilities.go +++ b/.dredd/hooks/capabilities.go @@ -234,6 +234,7 @@ func alterRequestBody(t *trans.Transaction) { bodyFieldProcessor("inventory_id", inventoryID, &request) bodyFieldProcessor("repository_id", repoID, &request) bodyFieldProcessor("template_id", templateID, &request) + bodyFieldProcessor("build_template_id", nil, &request) if task != nil { bodyFieldProcessor("task_id", task.ID, &request) } diff --git a/api-docs.yml b/api-docs.yml index d5a94c4e..d58d97a5 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -890,10 +890,6 @@ definitions: properties: id: type: integer - template_id: - type: integer - project_id: - type: integer name: type: string example: default @@ -909,6 +905,7 @@ definitions: type: - string - 'null' + example: path/to/script-client.py ScheduleRequest: type: object