lib fixed is file keys

This commit is contained in:
iLLiCiTiT 2020-09-15 12:46:23 +02:00
parent 3cf1c91e2b
commit 6329836c27

View file

@ -123,6 +123,11 @@ class SchemaDuplicatedKeys(Exception):
def file_keys_from_schema(schema_data):
output = []
item_type = schema_data["type"]
klass = TypeToKlass.types[item_type]
if not klass.is_input_type:
return output
keys = []
key = schema_data.get("key")
if key:
@ -143,6 +148,11 @@ def file_keys_from_schema(schema_data):
def validate_all_has_ending_file(schema_data, is_top=True):
item_type = schema_data["type"]
klass = TypeToKlass.types[item_type]
if not klass.is_input_type:
return None
if schema_data.get("is_file"):
return None