Skip to content

Commit

Permalink
Allow S3 openapi to be nullable (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 authored Jun 7, 2024
1 parent b76e35b commit e38b88b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fishjam_web/api_spec/component/HLS/S3.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e38b88b

Please sign in to comment.