Make categories required
parent
c0364e333f
commit
992d00dc0f
|
@ -189,8 +189,11 @@ def _validate_resource(path, resource):
|
|||
|
||||
# Metadata check
|
||||
if resource['type'] in ["app", "lib"]:
|
||||
pass #todo: what exactly are we're making required?
|
||||
pass #todo: should we make license required?
|
||||
|
||||
if resource['type'] == "app":
|
||||
if 'categories' not in resource or (not isinstance(resource['categories'], list)) or len(resource['categories']) == 0:
|
||||
resource.setdefault("errors", []).append("___categories___ list is required in main.py but not found")
|
||||
|
||||
"""
|
||||
helpers
|
||||
|
|
|
@ -5,6 +5,7 @@ To publish apps use https://badge.emfcamp.org"""
|
|||
___license___ = "MIT"
|
||||
___name___ = "App Library"
|
||||
___dependencies___ = ["wifi", "dialogs"]
|
||||
___categories___ = ["System"]
|
||||
___bootstrapped___ = True
|
||||
|
||||
import pyb
|
||||
|
|
Loading…
Reference in New Issue