ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
74 lines (36 loc) • 945 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [getMissingParams](./ibm-cloud-sdk-core.getmissingparams.md)
## getMissingParams() function
Validates that all required params are provided
**Signature:**
```typescript
export declare function getMissingParams(params: {
[key: string]: any;
}, requires: string[]): null | Error;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
params
</td><td>
{ \[key: string\]: any; }
</td><td>
the method parameters.
</td></tr>
<tr><td>
requires
</td><td>
string\[\]
</td><td>
the required parameter names.
</td></tr>
</tbody></table>
**Returns:**
null \| Error
null if no errors found, otherwise an Error instance