Skip to content

Commit

Permalink
[ML] Enhances api docs for modules endpoints (#66738)
Browse files Browse the repository at this point in the history
* [ML] Enhances api docs for modules endpoints

* [ML] Edits to modules schema following review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
peteharverson and elasticmachine committed May 18, 2020
1 parent 3b4814b commit 1c61ca2
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ export function postProcess(parsedFiles: any[]): void {
*/
function updateBlockParameters(docEntries: DocEntry[], block: Block, paramsGroup: string): void {
if (!block.local.parameter) {
block.local.parameter = {
fields: {},
};
block.local.parameter = {};
}
if (!block.local.parameter.fields) {
block.local.parameter.fields = {};
}

if (!block.local.parameter.fields![paramsGroup]) {
Expand Down
Loading

0 comments on commit 1c61ca2

Please sign in to comment.