Skip to content

Commit 5b7b4fd

Browse files
authored
chore: bump dependencies (playwright 1.55.0) and fix errors (#56)
* chore: update devDependencies - Bump @playwright/test to 1.55.0 - Bump @types/node to 22.18.1 - Bump cross-env to 10.0.0 - Bump dotenv to 17.2.2 - Bump typescript to 5.9.2 * chore: update petstore specs and test linting - Remove `http` scheme from petstore configurations - Change OAuth2 flow from `authorizationCode` to `accessCode` in petstore configuration files for consistency. - Add `consumes` property for multiple operations - Fix trailing commas in test files for lint compliance * chore: update .gitignore with additional IDE entries * fix(files): handle buffer correctly in blob method - Wrap readFile buffer in Uint8Array before creating Blob to ensure proper data formatting.
1 parent 198a441 commit 5b7b4fd

File tree

9 files changed

+127
-57
lines changed

9 files changed

+127
-57
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# IDEs
2-
/.vscode/
32
/.cursor/
4-
/.trae/
53
/.junie/
4+
/.qoder/
5+
/.trae/
6+
/.vscode/
7+
/.windsurf/
8+
/.zed/
69
/.idea/
710
!/.idea/icon.png
811
*.iml

package-lock.json

Lines changed: 41 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"format": "npm run lint --fix"
1414
},
1515
"devDependencies": {
16-
"@playwright/test": "1.53.2",
17-
"@types/node": "22.16.0",
16+
"@playwright/test": "1.55.0",
17+
"@types/node": "22.18.1",
1818
"@typescript-eslint/eslint-plugin": "7.18.0",
1919
"@typescript-eslint/parser": "7.18.0",
2020
"@typescript-eslint/types": "7.18.0",
21-
"cross-env": "7.0.3",
22-
"dotenv": "17.0.0",
21+
"cross-env": "10.0.0",
22+
"dotenv": "17.2.2",
2323
"eslint": "8.57.1",
2424
"eslint-plugin-json": "3.1.0",
2525
"eslint-plugin-promise": "6.6.0",
2626
"eslint-plugin-sort-exports": "0.9.1",
2727
"eslint-plugin-filenames": "1.3.2",
2828
"eslint-plugin-ui-testing": "2.0.1",
2929
"jszip": "3.10.1",
30-
"typescript": "5.8.3"
30+
"typescript": "5.9.2"
3131
},
3232
"eslintConfig": {
3333
"extends": ".eslintrc.json"

resources/portal/atui_petstore20.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
}
3939
],
4040
"schemes": [
41-
"https",
42-
"http"
41+
"https"
4342
],
4443
"paths": {
4544
"/pet": {
@@ -469,6 +468,10 @@
469468
"summary": "Place an order for a pet",
470469
"description": "",
471470
"operationId": "placeOrder",
471+
"consumes": [
472+
"application/json",
473+
"application/xml"
474+
],
472475
"produces": [
473476
"application/xml",
474477
"application/json"
@@ -576,6 +579,10 @@
576579
"summary": "Create user",
577580
"description": "This can only be done by the logged in user.",
578581
"operationId": "createUser",
582+
"consumes": [
583+
"application/json",
584+
"application/xml"
585+
],
579586
"produces": [
580587
"application/xml",
581588
"application/json"
@@ -606,6 +613,10 @@
606613
"summary": "Creates list of users with given input array",
607614
"description": "",
608615
"operationId": "createUsersWithArrayInput",
616+
"consumes": [
617+
"application/json",
618+
"application/xml"
619+
],
609620
"produces": [
610621
"application/xml",
611622
"application/json"
@@ -639,6 +650,10 @@
639650
"summary": "Creates list of users with given input array",
640651
"description": "",
641652
"operationId": "createUsersWithListInput",
653+
"consumes": [
654+
"application/json",
655+
"application/xml"
656+
],
642657
"produces": [
643658
"application/xml",
644659
"application/json"
@@ -780,6 +795,10 @@
780795
"summary": "Updated user",
781796
"description": "This can only be done by the logged in user.",
782797
"operationId": "updateUser",
798+
"consumes": [
799+
"application/json",
800+
"application/xml"
801+
],
783802
"produces": [
784803
"application/xml",
785804
"application/json"
@@ -845,8 +864,9 @@
845864
"securityDefinitions": {
846865
"petstore_auth": {
847866
"type": "oauth2",
848-
"authorizationUrl": "http://petstore.swagger.io/oauth/dialog",
849-
"flow": "implicit",
867+
"authorizationUrl": "https://petstore.swagger.io/oauth/dialog",
868+
"flow": "accessCode",
869+
"tokenUrl": "https://petstore.swagger.io/oauth/token",
850870
"scopes": {
851871
"write:pets": "modify pets in your account",
852872
"read:pets": "read your pets"

resources/portal/for-changelog/atui_petstore20_changelog_base.json

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
}
3939
],
4040
"schemes": [
41-
"https",
42-
"http"
41+
"https"
4342
],
4443
"paths": {
4544
"/pet": {
@@ -469,6 +468,10 @@
469468
"summary": "Place an order for a pet",
470469
"description": "",
471470
"operationId": "placeOrder",
471+
"consumes": [
472+
"application/json",
473+
"application/xml"
474+
],
472475
"produces": [
473476
"application/xml",
474477
"application/json"
@@ -576,6 +579,10 @@
576579
"summary": "Create user",
577580
"description": "This can only be done by the logged in user.",
578581
"operationId": "createUser",
582+
"consumes": [
583+
"application/json",
584+
"application/xml"
585+
],
579586
"produces": [
580587
"application/xml",
581588
"application/json"
@@ -606,6 +613,10 @@
606613
"summary": "Creates list of users with given input array",
607614
"description": "",
608615
"operationId": "createUsersWithArrayInput",
616+
"consumes": [
617+
"application/json",
618+
"application/xml"
619+
],
609620
"produces": [
610621
"application/xml",
611622
"application/json"
@@ -639,6 +650,10 @@
639650
"summary": "Creates list of users with given input array",
640651
"description": "",
641652
"operationId": "createUsersWithListInput",
653+
"consumes": [
654+
"application/json",
655+
"application/xml"
656+
],
642657
"produces": [
643658
"application/xml",
644659
"application/json"
@@ -780,6 +795,10 @@
780795
"summary": "Updated user",
781796
"description": "This can only be done by the logged in user.",
782797
"operationId": "updateUser",
798+
"consumes": [
799+
"application/json",
800+
"application/xml"
801+
],
783802
"produces": [
784803
"application/xml",
785804
"application/json"
@@ -845,8 +864,9 @@
845864
"securityDefinitions": {
846865
"petstore_auth": {
847866
"type": "oauth2",
848-
"authorizationUrl": "http://petstore.swagger.io/oauth/dialog",
849-
"flow": "implicit",
867+
"authorizationUrl": "https://petstore.swagger.io/oauth/dialog",
868+
"flow": "accessCode",
869+
"tokenUrl": "https://petstore.swagger.io/oauth/token",
850870
"scopes": {
851871
"write:pets": "modify pets in your account",
852872
"read:pets": "read your pets"

0 commit comments

Comments
 (0)