Skip to content

Commit

Permalink
Fix camelCase problem in continuations
Browse files Browse the repository at this point in the history
[changelog:fixed]
  • Loading branch information
cdupuis committed Sep 11, 2020
1 parent 0da8d9b commit 7c0b18c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/api/context/parameterPrompt.ts
Expand Up @@ -162,10 +162,16 @@ export function commandRequestParameterPromptFactory<T>(ctx: HandlerContext): Pa
auto_submit: !!options.autoSubmit ? options.autoSubmit : undefined,
question: !!options.parameterStyle ? options.parameterStyle.toString() : undefined,
parameter_specs: _.map(newParameters, (v, k) => ({
...v,
name: k,
description: v.description,
required: v.required !== undefined ? v.required : true,
pattern: v.pattern ? v.pattern.source : undefined,
valid_input: v.validInput,
max_length: v.maxLength,
min_length: v.minLength,
display_name: v.displayName,
default_value: v.defaultValue,
type: v.type,
})),
content_type: AtomistContinuationMimeType,
};
Expand Down

0 comments on commit 7c0b18c

Please sign in to comment.