Skip to content

Commit

Permalink
fix: files are not linted properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieter Stinglhamber committed Dec 19, 2023
1 parent b5d6460 commit 38d4e82
Show file tree
Hide file tree
Showing 6 changed files with 2,093 additions and 771 deletions.
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,23 @@ pnpm install asyncapi-validation
```ts
import asyncAPIValidation from 'asyncapi-validation';

const validator = await asyncAPIValidation.fromUrl('https://example.org/schema.yaml');
const validator = await asyncAPIValidation.fromUrl(
'https://example.org/schema.yaml'
);
validator('messageName', { foo: 'bar' });
validator('messageId', { foo: 'bar' });
```

# Using a local schema

```ts
const validator = await asyncAPIValidation.fromUrl('./schema.yaml');
validator('messageName', { foo: 'bar' });
validator('messageId', { foo: 'bar' });
```

# Using an in-line schema

```ts
const validator = await asyncAPIValidation.fromSchema(`asyncapi: 3.0.0
info:
Expand Down Expand Up @@ -67,7 +71,7 @@ components:
type: string
format: email
description: Email of the user
`)
`);
validator('messageName', { foo: 'bar' });
validator('messageId', { foo: 'bar' });
```
Expand Down
Loading

0 comments on commit 38d4e82

Please sign in to comment.