Skip to content

Linked README to third pary IoC provider usage documentation #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ let validator = Container.get(Validator);
// also you can inject classes using constructor injection into your custom ValidatorConstraint-s
```

For other IoC providers that don't expose a `get(xxx)` function as specified above, you may need to create an IoC adapter using `IocAdapter`. Read more [here](https://github.com/typestack/routing-controllers#using-di-container)

## Synchronous validation

If you want to perform a simple non async validation you can use `validateSync` method instead of regular `validate`
Expand Down