From 4f683f97d9ebe5dbbdfd1613c767230e369226a7 Mon Sep 17 00:00:00 2001 From: Giriharan Date: Thu, 7 Nov 2024 10:38:47 +0530 Subject: [PATCH] fix: update response models --- nisystemlink/clients/feeds/models/_package.py | 2 +- nisystemlink/clients/feeds/models/_query_feeds.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nisystemlink/clients/feeds/models/_package.py b/nisystemlink/clients/feeds/models/_package.py index 0dc00cb8..ec60e3ea 100644 --- a/nisystemlink/clients/feeds/models/_package.py +++ b/nisystemlink/clients/feeds/models/_package.py @@ -39,7 +39,7 @@ class PackageMetadata(JsonModel): """The maintainer of the package (name and email address).""" predepends: Optional[List[str]] = None """Information about other packages this package predepends.""" - priority: int + priority: Optional[int] = None """The priority of the package.""" provides: Optional[List[str]] = None """Information about other packages that this package provides.""" diff --git a/nisystemlink/clients/feeds/models/_query_feeds.py b/nisystemlink/clients/feeds/models/_query_feeds.py index 1b5c51a7..b90cc491 100644 --- a/nisystemlink/clients/feeds/models/_query_feeds.py +++ b/nisystemlink/clients/feeds/models/_query_feeds.py @@ -1,6 +1,6 @@ from __future__ import annotations -from typing import List +from typing import List, Optional from nisystemlink.clients.core._uplink._json_model import JsonModel @@ -10,5 +10,5 @@ class QueryFeedsResponse(JsonModel): """Query Feeds response.""" - feeds: List[Feed] + feeds: Optional[List[Feed]] = None """A collection of feeds"""