Skip to content

Commit b7955c0

Browse files
docs: fix grammar errors in README.md (#1140)
Co-authored-by: Cairon <ahmedbebars88+cairon@gmail.com> Co-authored-by: Prince Rajpoot <prince.rajpoot.20@gmail.com>
1 parent c80045b commit b7955c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Updated bundle for the browser is always attached to the GitHub Release.
1414
> This package doesn't support AsyncAPI 1.x anymore. We recommend to upgrade to the latest AsyncAPI version using the [AsyncAPI converter](https://github.com/asyncapi/converter-js). If you need to convert documents on the fly, you may use the [Node.js](https://github.com/asyncapi/converter-js) or [Go](https://github.com/asyncapi/converter-go) converters.
1515
1616
> **Warning**
17-
> This package has rewrote the Model API (old one) to [Intent API](https://github.com/asyncapi/parser-api). If you still need to use the old API, read the [Convert to the old API](#convert-to-the-old-api) section.
17+
> This package has rewritten the Model API (old one) to [Intent API](https://github.com/asyncapi/parser-api). If you still need to use the old API, read the [Convert to the old API](#convert-to-the-old-api) section.
1818
1919
> **Note**
2020
> Read the [migration guide from v2 to v3](./docs/migrations/v2-to-v3.md).
@@ -67,7 +67,7 @@ The package exposes the main class `Parser`, which has two main functions:
6767

6868
- `validate()` - function that validates the passed AsyncAPI document. Returns array of all possible errors against the validation conditions.
6969
- `parse()` - function that validates the passed AsyncAPI document, and then if it's valid, parses the input. It returns an object that contains:
70-
- `document` object, which is an parsed AsyncAPI document with [`AsyncAPIDocumentInterface`](./packages/parser/src/models/asyncapi.ts) API. If the schema is invalid against the validation conditions, the field has `undefined` value.
70+
- `document` object, which is a parsed AsyncAPI document with [`AsyncAPIDocumentInterface`](./packages/parser/src/models/asyncapi.ts) API. If the schema is invalid against the validation conditions, the field has `undefined` value.
7171
- `diagnostics` array that contains all possible errors against the validation conditions.
7272
- `registerSchemaParser()` - function that registers custom schema parsers. For more info, please check [Custom schema parsers](#custom-schema-parsers) section.
7373

0 commit comments

Comments
 (0)