Merge pull request #165 from github/cschleiden/do-not-override-event-payloads
Do not replace event payloads with null
This commit is contained in:
@@ -93,6 +93,12 @@ function mergeParam(target: DescriptionDictionary, param: Param) {
|
|||||||
} else {
|
} else {
|
||||||
// Otherwise add as a null value. We do not care about the actual content for validation
|
// Otherwise add as a null value. We do not care about the actual content for validation
|
||||||
// auto-completion. Possible existence and the description are enough.
|
// auto-completion. Possible existence and the description are enough.
|
||||||
|
//
|
||||||
|
// As a special case, if the param is already set, do not overwrite it.
|
||||||
|
if (!!target.get(param.name)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
target.add(param.name, new data.Null(), param.description);
|
target.add(param.name, new data.Null(), param.description);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user