From 1989db9796f25631aab781b86275b04a654e3660 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Sun, 30 Oct 2022 13:40:52 +0100 Subject: [PATCH] specs,nextcloud: Fix news article --- packages/nextcloud/lib/src/nextcloud.openapi.dart | 4 ++-- packages/nextcloud/lib/src/nextcloud.openapi.g.dart | 2 +- packages/nextcloud/lib/src/nextcloud.openapi.json | 1 - specs/news.json | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.dart b/packages/nextcloud/lib/src/nextcloud.openapi.dart index 287a07a3..ad82d30c 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.dart @@ -1670,7 +1670,7 @@ class NewsArticle { required this.id, required this.guid, required this.guidHash, - required this.url, + this.url, required this.title, this.author, required this.pubDate, @@ -1697,7 +1697,7 @@ class NewsArticle { final String guidHash; - final String url; + final String? url; final String title; diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart index 1c6f3595..6e83b080 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.g.dart +++ b/packages/nextcloud/lib/src/nextcloud.openapi.g.dart @@ -1002,7 +1002,7 @@ NewsArticle _$NewsArticleFromJson(Map json) => NewsArticle( id: json['id'] as int, guid: json['guid'] as String, guidHash: json['guidHash'] as String, - url: json['url'] as String, + url: json['url'] as String?, title: json['title'] as String, author: json['author'] as String?, pubDate: json['pubDate'] as int, diff --git a/packages/nextcloud/lib/src/nextcloud.openapi.json b/packages/nextcloud/lib/src/nextcloud.openapi.json index 0166ca15..6d290724 100644 --- a/packages/nextcloud/lib/src/nextcloud.openapi.json +++ b/packages/nextcloud/lib/src/nextcloud.openapi.json @@ -1162,7 +1162,6 @@ "id", "guid", "guidHash", - "url", "title", "pubDate", "body", diff --git a/specs/news.json b/specs/news.json index 2084e50e..770e483d 100644 --- a/specs/news.json +++ b/specs/news.json @@ -144,7 +144,6 @@ "id", "guid", "guidHash", - "url", "title", "pubDate", "body",