From e38b88b8c6bb19df2c37d284183f17884bfbf1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Szuma?= <56085570+Rados13@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:40:48 +0200 Subject: [PATCH] Allow S3 openapi to be nullable (#209) --- lib/fishjam_web/api_spec/component/HLS/S3.ex | 3 ++- openapi.yaml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/fishjam_web/api_spec/component/HLS/S3.ex b/lib/fishjam_web/api_spec/component/HLS/S3.ex index 204c1b0d..00478775 100644 --- a/lib/fishjam_web/api_spec/component/HLS/S3.ex +++ b/lib/fishjam_web/api_spec/component/HLS/S3.ex @@ -27,6 +27,7 @@ defmodule FishjamWeb.ApiSpec.Component.HLS.S3 do description: "The name of the S3 bucket where your data will be stored." } }, - required: [:accessKeyId, :secretAccessKey, :region, :bucket] + required: [:accessKeyId, :secretAccessKey, :region, :bucket], + nullable: true }) end diff --git a/openapi.yaml b/openapi.yaml index 81eff8d8..3d8c9cc2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -156,6 +156,7 @@ components: properties: credentials: description: An AWS S3 credential that will be used to send HLS stream. The stream will only be uploaded if credentials are provided + nullable: true properties: accessKeyId: description: An AWS access key identifier, linked to your AWS account. @@ -443,6 +444,7 @@ components: type: boolean s3: description: An AWS S3 credential that will be used to send HLS stream. The stream will only be uploaded if credentials are provided + nullable: true properties: accessKeyId: description: An AWS access key identifier, linked to your AWS account. @@ -500,6 +502,7 @@ components: x-struct: Elixir.FishjamWeb.ApiSpec.Component.SIP.SIPCredentials S3Credentials: description: An AWS S3 credential that will be used to send HLS stream. The stream will only be uploaded if credentials are provided + nullable: true properties: accessKeyId: description: An AWS access key identifier, linked to your AWS account.