Skip to content

Commit b3355c6

Browse files
committed
refactorings, more tests
1 parent be1e4f2 commit b3355c6

18 files changed

+907
-54
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# QAToolKit.Source.Swagger
22
![.NET Core](https://github.com/qatoolkit/qatoolkit-source-swagger-net/workflows/.NET%20Core/badge.svg)
33

4-
`QAToolKit.Source.Swagger` is a .NET standard library, which generates `IList<HttpRequest>` object that is the input for other components.
4+
`QAToolKit.Source.Swagger` is a .NET standard library, which generates `IEnumerable<HttpRequest>` object that is the input for other components.
55

66
Major features:
77

8-
- Parses `OpenAPI v3.0` Swagger files,
8+
- Parses `OpenAPI v3.0` Swagger files (JSON or YAML),
99
- swagger.json can be loaded from `disk` or from `URL`,
1010
- access swagger.json from URL, which is protected by `basic authentication`,
1111
- control which swagger endpoints are returned by specifying `request filters` (check below)
@@ -31,7 +31,7 @@ SwaggerUrlSource swaggerSource = new SwaggerUrlSource(
3131
});
3232

3333
//To run the Swagger parser we need to pass an array of URLs
34-
IList<HttpRequest> requests = await swaggerSource.Load(new Uri[] {
34+
IEnumerable<HttpRequest> requests = await swaggerSource.Load(new Uri[] {
3535
new Uri("https://api.demo.com/swagger/v1/swagger.json"),
3636
new Uri("https://api2.demo.com/swagger/v1/swagger.json")
3737
});

0 commit comments

Comments
 (0)