original_docstring: Creates a base property using create_property based on the type value is
docstring: Creates a base property using create_property based on the type value is
docstring_tokens: Creates a base property using create_property based on the type value is
code: def create_property_w_type(property_name, value=None, my_type=None, **kwargs):
      """Creates a base property using create_property based on the type value is"""
      entry = None
      my_type = type(value) if my_type is None else my_type
      if isinstance(value, list) or my_type in ["array", list] or kwargs.get('type') == "array":
          my_type = kwargs['items']['type'][0]
          entry = create_property(property_name, "Collection({})".format(type_conversion.get(my_type, 'TBD')), **kwargs)
      elif my_type in type_conversion:
          entry = create_property(property_name, type_conversion[my_type], **kwargs)
      else:
          entry = create_property(property_name, "TBD", **kwargs)
  
      return entry
code_tokens: def create_property_w_type ( property_name , value = None , my_type = None , ** kwargs ) : entry = None my_type = type ( value ) if my_type is None else my_type if isinstance ( value , list ) or my_type in [ "array" , list ] or kwargs . get ( 'type' ) == "array" : my_type = kwargs [ 'items' ] [ 'type' ] [ 0 ] entry = create_property ( property_name , "Collection({})" . format ( type_conversion . get ( my_type , 'TBD' ) ) , ** kwargs ) elif my_type in type_conversion : entry = create_property ( property_name , type_conversion [ my_type ] , ** kwargs ) else : entry = create_property ( property_name , "TBD" , ** kwargs ) return entry
short_docstring: Creates a base property using create_property based on the type value is
short_docstring_tokens: Creates a base property using create_property based on the type value is
comment: """Creates a base property using create_property based on the type value is"""