Skip to content

Commit

Permalink
Fix issue where some creators have null offline attributes
Browse files Browse the repository at this point in the history
Addresses #13.
  • Loading branch information
Jman012 committed Sep 27, 2022
1 parent 7299f04 commit fddea44
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import Vapor

public struct LiveStreamModelOffline: Content, Hashable {

public var title: String
public var description: String
public var thumbnail: ImageModel
public var title: String?
public var description: String?
public var thumbnail: ContentPostV3ResponseThumbnail?

public init(title: String, description: String, thumbnail: ImageModel) {
public init(title: String?, description: String?, thumbnail: ContentPostV3ResponseThumbnail?) {
self.title = title
self.description = description
self.thumbnail = thumbnail
Expand Down
13 changes: 10 additions & 3 deletions floatplane-openapi-specification-trimmed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2366,13 +2366,20 @@
"type": "object",
"properties": {
"title": {
"type": "string"
"type": "string",
"nullable": true
},
"description": {
"type": "string"
"type": "string",
"nullable": true
},
"thumbnail": {
"$ref": "#/components/schemas/ImageModel"
"allOf": [
{
"$ref": "#/components/schemas/ImageModel"
}
],
"nullable": true
}
},
"required": [
Expand Down

0 comments on commit fddea44

Please sign in to comment.