Skip to content

Commit

Permalink
use display_default instead of default
Browse files Browse the repository at this point in the history
Ref: #8593
`display_default` should now be used to generate defaults file
  • Loading branch information
ian28223 committed Jul 21, 2021
1 parent f66e99f commit 038efa5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def example_looks_informative(example):


def get_default_value(type_data):
if 'default' in type_data:
return type_data['default']
if 'display_default' in type_data:
return type_data['display_default']
elif 'type' not in type_data or type_data['type'] in ('array', 'object'):
return NO_DEFAULT

Expand Down

0 comments on commit 038efa5

Please sign in to comment.