Skip to content

Commit

Permalink
Fix return schema for available apps
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fe5c18)
  • Loading branch information
sonicaj authored and bugclerk committed Sep 21, 2024
1 parent e192b9d commit b161e27
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/middlewared/middlewared/plugins/catalog/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ async def latest(self, filters, options):
Bool('installed', required=True),
Bool('recommended', required=True),
Datetime('last_update', required=True),
List('capabilities', required=True),
List('run_as_context', required=True),
List('categories', required=True),
List('maintainers', required=True),
List('tags', required=True),
Expand All @@ -47,7 +49,10 @@ async def latest(self, filters, options):
Str('icon_url', null=True, required=True),
Str('train', required=True),
Str('catalog', required=True),
register=True
register=True,
# We do this because if we change anything in catalog.json, even older releases will
# get this new field and different roles will start breaking due to this
additional_attrs=True,
))
def available(self, filters, options):
"""
Expand Down

0 comments on commit b161e27

Please sign in to comment.