Skip to content

Commit

Permalink
[ML] Enhances api docs for modules endpoints (elastic#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 <[email protected]>
  • Loading branch information
peteharverson and elasticmachine committed May 18, 2020
1 parent a0ee6df commit 63141af
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 63141af

Please sign in to comment.