This commit is contained in:
Matt Mazzola 2016-06-23 11:40:09 -07:00
Родитель fb55f1504f
Коммит 784f9ece11
1 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -1,6 +1,8 @@
# powerbi-models
Collection of functions to validate PowerBI messages using json schema. Also contains shared interfaces for all messages to ensure host and iframe agree.
Contains JavaScript & TypeScript object models for Microsoft Power BI JavaScript SDK.
For each model there is a TypeScript interface, a json schema definitions, and a validation function to ensure and object is valid.
## Getting Started
@ -21,9 +23,15 @@ let testObject = { x: 1 };
const errors = models.validateLoad(testObject);
if(errors) {
console.warn(errors)
console.warn(errors);
}
...
```
Would output to the console:
```
[
{
message: 'accessToken is required'
}
]
```