Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…gy-api into dev-integrate
  • Loading branch information
yuanzhou committed Jan 12, 2024
2 parents c559137 + 4622be8 commit c5deea9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ def field_types_get(name=None):
if err != 'ok':
return make_response(err, 400)

val_enum = ['HMFIELD', 'XSD']

# Validate mapping source.
mapping_source = request.args.get('mapping_source')
if mapping_source is not None:
val_enum = ['HMFIELD', 'CEDAR']
mapping_source = mapping_source.upper()
err = validate_parameter_value_in_enum(param_name='mapping_source', param_value=mapping_source,
enum_list=val_enum)
Expand All @@ -34,6 +33,7 @@ def field_types_get(name=None):
# Validate type source.
type_source = request.args.get('type_source')
if type_source is not None:
val_enum = ['HMFIELD', 'XSD']
type_source = type_source.upper()
err = validate_parameter_value_in_enum(param_name='type_source', param_value=type_source,
enum_list=val_enum)
Expand Down

0 comments on commit c5deea9

Please sign in to comment.