Skip to content

Commit

Permalink
fix: crash on multiple examples on parameter object
Browse files Browse the repository at this point in the history
fixes #1485
  • Loading branch information
RomanHotsiy committed Jan 28, 2021
1 parent d886751 commit 0dce880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/models/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class FieldModel {
if (info.examples !== undefined) {
this.examples = mapValues(
info.examples,
example => new ExampleModel(parser, example, name, info.encoding),
(example, name) => new ExampleModel(parser, example, name, info.encoding),
);
}

Expand Down

0 comments on commit 0dce880

Please sign in to comment.