https://github.com/neuralegion/oas2har
Transform you Swagger/OAS spec files to a series of HAR request objects.
https://github.com/neuralegion/oas2har
har javascript oas swagger
Last synced: about 1 month ago
JSON representation
Transform you Swagger/OAS spec files to a series of HAR request objects.
- Host: GitHub
- URL: https://github.com/neuralegion/oas2har
- Owner: NeuraLegion
- License: mit
- Archived: true
- Created: 2019-07-16T11:32:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-02T17:18:53.000Z (almost 4 years ago)
- Last Synced: 2024-09-30T07:01:34.987Z (about 1 year ago)
- Topics: har, javascript, oas, swagger
- Language: JavaScript
- Homepage:
- Size: 1.23 MB
- Stars: 2
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oas2har
**THIS REPO HAS BEEN DEPRECATED. THE DEVELOPMENT HAS MOVED TO A NEW REPOSITORY: https://github.com/NeuraLegion/har-sdk**
Transform you Swagger OAI spec files to a series of HAR request objects.
* http://swagger.io/specification/
* http://www.softwareishard.com/blog/har-12-spec/#request
## Setup
```bash
npm i --save @neuralegion/oas2har
```
## Usage
Using as a ES module:
```js
import { oasToHarList } from '@neuralegion/oas2har';
import swaggerJSON from 'your-swagger-api.json'; // e.g. http://petstore.swagger.io/v2/swagger.json
oasToHarList(swaggerJSON)
.then((har) => {
console.log(har);
});
```
## Testing
```bash
npm run test
```