Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit ab97bbc

Browse files
committed
chore: release 2.2.0
1 parent 7581e78 commit ab97bbc

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Protagonist Changelog
22

3+
## 2.2.0 (2020-04-20)
4+
5+
### Enhancements
6+
7+
* Drafter contains two new options for disabling messageBody and
8+
messageBodySchema generation from MSON. `generateMessageBody` and
9+
`generatedMessageBodySchema` respectively.
10+
311
## 2.1.0 (2020-03-17)
412

513
This update now uses Drafter 5.0.0-rc.1. Please see [Drafter

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,20 @@ Options can be passed to the parser as an optional second argument to both the a
148148
```js
149149
const options = {
150150
generateSourceMap: true,
151+
generateMessageBody: true,
152+
generateMessageBodySchema: true,
151153
};
152154
const parseResult = await protagonist.parse('# My API', options);
153155
```
154156

155157
The available options are:
156158

157-
Name | Description
158-
---------------------- | ----------------------------------------------------------
159-
`requireBlueprintName` | Require parsed blueprints have a title (default: false)
160-
`generateSourceMap` | Enable sourcemap generation (default: false)
159+
Name | Description
160+
--------------------------- | ----------------------------------------------------------
161+
`requireBlueprintName` | Require parsed blueprints have a title (default: false)
162+
`generateSourceMap` | Enable sourcemap generation (default: false)
163+
`generateMessageBody` | Enable generation of messageBody from MSON (default: true)
164+
`generateMessageBodySchema` | Enable generation of messageBodySchema from MSON (default: true)
161165

162166
<a name="parse-result"></a>
163167
### Parse Result

drafter

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "protagonist",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "API Blueprint Parser",
55
"author": "Apiary.io <support@apiary.io>",
66
"main": "./build/Release/protagonist",

0 commit comments

Comments
 (0)