diff --git a/CHANGELOG.md b/CHANGELOG.md index e4a9fc8..4d2d928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Protagonist Changelog +## 2.2.0 (2020-04-20) + +### Enhancements + +* Drafter contains two new options for disabling messageBody and + messageBodySchema generation from MSON. `generateMessageBody` and + `generatedMessageBodySchema` respectively. + ## 2.1.0 (2020-03-17) This update now uses Drafter 5.0.0-rc.1. Please see [Drafter diff --git a/README.md b/README.md index c475481..f69e7b1 100644 --- a/README.md +++ b/README.md @@ -148,16 +148,20 @@ Options can be passed to the parser as an optional second argument to both the a ```js const options = { generateSourceMap: true, + generateMessageBody: true, + generateMessageBodySchema: true, }; const parseResult = await protagonist.parse('# My API', options); ``` The available options are: -Name | Description ----------------------- | ---------------------------------------------------------- -`requireBlueprintName` | Require parsed blueprints have a title (default: false) -`generateSourceMap` | Enable sourcemap generation (default: false) +Name | Description +--------------------------- | ---------------------------------------------------------- +`requireBlueprintName` | Require parsed blueprints have a title (default: false) +`generateSourceMap` | Enable sourcemap generation (default: false) +`generateMessageBody` | Enable generation of messageBody from MSON (default: true) +`generateMessageBodySchema` | Enable generation of messageBodySchema from MSON (default: true) ### Parse Result diff --git a/drafter b/drafter index 152c998..89578c2 160000 --- a/drafter +++ b/drafter @@ -1 +1 @@ -Subproject commit 152c99829190a7e2ae3bac3727390949a8b9aea8 +Subproject commit 89578c25eac3cee6649121f9eaeef0fa3e25d9c5 diff --git a/package.json b/package.json index 0dcee8e..9463eee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "protagonist", - "version": "2.1.0", + "version": "2.2.0", "description": "API Blueprint Parser", "author": "Apiary.io ", "main": "./build/Release/protagonist",