You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
@@ -18,6 +19,8 @@ The best way to install Protagonist is by using its [NPM package](https://npmjs.
18
19
$ npm install protagonist
19
20
```
20
21
22
+
Works smoothly with node.js ~0.8.15, 0.10.x, 0.12.x and iojs v1.x.x
23
+
21
24
## Getting started
22
25
23
26
```js
@@ -47,7 +50,7 @@ will produce the following object (`result` variable):
47
50
```json
48
51
{
49
52
"ast": {
50
-
"_version": "2.1",
53
+
"_version": "3.0",
51
54
"metadata": [],
52
55
"name": "",
53
56
"description": "",
@@ -110,7 +113,7 @@ will produce the following object (`result` variable):
110
113
111
114
+`ast` ... This is the abstract syntax tree (AST) of the parsed blueprint.
112
115
113
-
The structure under this key is **1:1** with the [AST Blueprint serialization JSON media type v2.1](https://github.com/apiaryio/api-blueprint-ast#json-serialization) – `vnd.apiblueprint.ast.raw+json; version=2.1`.
116
+
The structure under this key is **1:1** with the [AST Blueprint serialization JSON media type v3.0](https://github.com/apiaryio/api-blueprint-ast#example-json-serialization) – `vnd.apiblueprint.ast.raw+json; version=3.0`.
114
117
115
118
+`warnings` ... Array of the parser warnings as occurred during the parsing
0 commit comments