Skip to content

Commit

Permalink
Merge pull request #2 from ewels/schema-pattern
Browse files Browse the repository at this point in the history
params_completions: support 'pattern' schema key
  • Loading branch information
peterk87 authored Jul 1, 2021
2 parents 301d152 + f523975 commit c9eaefb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions params_completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def format_param_info(param_info: dict) -> str:
f'<p><b>Type:</b> <code>{param_type}</code></p>'
f'<p><b>Default:</b> <code>{default}</code></p>'
)
if 'pattern' in param_info:
out += f'<p><b>Pattern:</b> <code>{param_info["pattern"]}</code><p>'
if 'enum' in param_info:
enum = param_info['enum']
if isinstance(enum, list):
Expand Down

0 comments on commit c9eaefb

Please sign in to comment.