fix: crash on multiple examples on parameter object

fixes #1485
This commit is contained in:
romanhotsiy 2021-01-28 11:21:07 +02:00
parent d886751261
commit 0dce880dce
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8

View File

@ -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),
);
}