Skip to content

Commit

Permalink
FF-338 #comment added enum for array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Nov 3, 2016
1 parent 1590173 commit 6956622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wranglertools/get_field_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def build_field_list(properties, required_fields=None, include_description=False
desc = '' if not include_description else props.get('description', '')
comm = '' if not include_comment else props.get('comment', '')
enum = '' if not include_enums else props.get('enum', '')
# if array of string with enum
if field_type == "array of strings":
sub_props = props.get('items', '')
enum = '' if not include_enums else sub_props.get('enum', '')
# copy paste exp set for ease of keeping track of different types in experiment objects
if field_name == 'experiment_sets':
set_types = ['Technical Replicates', 'Biological Replicates', 'Analysis Set', 'Others']
Expand Down

0 comments on commit 6956622

Please sign in to comment.