-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: ùupdate depts * style: prettier pass * fix: prettier file * style: eslint * chore: dedupe * Update package.json Co-authored-by: Karol Maciaszek <[email protected]> Co-authored-by: Karol Maciaszek <[email protected]>
- Loading branch information
1 parent
c4c8115
commit f2f0acb
Showing
57 changed files
with
1,839 additions
and
1,524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ["@stoplight"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
...require("@stoplight/eslint-config/prettier.config"), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { OpenAPIObject } from 'openapi3-ts'; | ||
import { Spec } from 'swagger-schema-official'; | ||
|
||
import { transformOas2Operations } from '../../oas2/operation'; | ||
import { transformOas3Operations } from '../../oas3/operation'; | ||
|
||
const oas2KitchenSinkJson: Spec = require('./fixtures//oas2-kitchen-sink.json'); | ||
const oas3KitchenSinkJson: OpenAPIObject = require('./fixtures//oas3-kitchen-sink.json'); | ||
|
||
describe('oas operation', () => { | ||
test('openapi v2', () => { | ||
it('openapi v2', () => { | ||
expect(transformOas2Operations(oas2KitchenSinkJson)).toHaveLength(5); | ||
}); | ||
|
||
test('openapi v3', () => { | ||
it('openapi v3', () => { | ||
expect(transformOas3Operations(oas3KitchenSinkJson)).toHaveLength(3); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.