From 930eb470967c0ed0ae18a416904dcad2e407456f Mon Sep 17 00:00:00 2001 From: Quaternions <krakow20@gmail.com> Date: Mon, 31 Mar 2025 18:09:25 -0700 Subject: [PATCH] openapi: tweak script data model --- openapi-internal.yaml | 16 ++++++++++++---- openapi.yaml | 21 ++++++++++++++++----- 2 files changed, 28 insertions(+), 9 deletions(-) diff --git a/openapi-internal.yaml b/openapi-internal.yaml index 34d861c..0d7f2c5 100644 --- a/openapi-internal.yaml +++ b/openapi-internal.yaml @@ -304,7 +304,8 @@ components: - Name - Hash - Source - - SubmissionID + - ResourceType + - ResourceID type: object properties: ID: @@ -320,14 +321,18 @@ components: Source: type: string maxLength: 1048576 - SubmissionID: + ResourceType: + type: integer + format: int32 + ResourceID: type: integer format: int64 ScriptCreate: required: - Name - Source -# - SubmissionID + - ResourceType +# - ResourceID type: object properties: Name: @@ -336,7 +341,10 @@ components: Source: type: string maxLength: 1048576 - SubmissionID: + ResourceType: + type: integer + format: int32 + ResourceID: type: integer format: int64 ScriptPolicy: diff --git a/openapi.yaml b/openapi.yaml index b17a186..57b3dac 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -822,7 +822,8 @@ components: - Name - Hash - Source - - SubmissionID + - ResourceType + - ResourceID type: object properties: ID: @@ -838,14 +839,18 @@ components: Source: type: string maxLength: 1048576 - SubmissionID: + ResourceType: + type: integer + format: int32 + ResourceID: type: integer format: int64 ScriptCreate: required: - Name - Source -# - SubmissionID + - ResourceType +# - ResourceID type: object properties: Name: @@ -854,7 +859,10 @@ components: Source: type: string maxLength: 1048576 - SubmissionID: + ResourceType: + type: integer + format: int32 + ResourceID: type: integer format: int64 ScriptUpdate: @@ -871,7 +879,10 @@ components: Source: type: string maxLength: 1048576 - SubmissionID: + ResourceType: + type: integer + format: int32 + ResourceID: type: integer format: int64 ScriptPolicy: