Skip to content

Commit

Permalink
chore: update e2e test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryAnansky committed Nov 21, 2024
1 parent 46f9801 commit 99f13be
Show file tree
Hide file tree
Showing 18 changed files with 47 additions and 48 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The field \`title\` must be present on this level.
5 | description: Example description
6 | version: '1.0'
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] ../__fixtures__/invalid-openapi.yaml:10:5 at #/paths/~1pet~1findByStatus/get/summary
Expand All @@ -60,7 +60,7 @@ Expected type \`Responses\` (object) but got \`null\`
| ^^^^^^^^^^
12 |
Error was generated by the spec rule.
Error was generated by the struct rule.
[4] ../__fixtures__/invalid-openapi.yaml:4:1 at #/info
Expand Down
4 changes: 2 additions & 2 deletions __tests__/lint/arazzo-not-valid-test-description/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The field \`info\` must be present on this level.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 |
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] museum.yaml:9:5 at #/workflows/0
Expand All @@ -36,7 +36,7 @@ The field \`steps\` must be present on this level.
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 |
Error was generated by the spec rule.
Error was generated by the struct rule.
museum.yaml: validated in <test>ms
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins:
- plugins/type-extention.js

arazzoRules:
spec: error
arazzo1Rules:
struct: error
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Property \`wrong-key\` is not expected here.
9 | metadata:
10 | lifecycle: production
Error was generated by the spec rule.
Error was generated by the struct rule.
museum.yaml: validated in <test>ms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Expected type \`array\` but got \`string\`.
| ^^^^^^
46 |
Error was generated by the spec rule.
Error was generated by the struct rule.
[4] openapi.yaml:2:1 at #/info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The \`type\` field must be defined when the \`nullable\` field is used.
17 | paths:
18 | /test:
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] openapi.yaml:28:17 at #/paths/~1test/get/responses/202/content/application~1json/schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Expected type \`string\` but got \`null\`.
8 | description: Dev Environment.
9 | security: []
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] openapi.yaml:2:1 at #/info
Expand Down
4 changes: 2 additions & 2 deletions __tests__/lint/null-schema-values/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Expected type \`Info\` (object) but got \`null\`
3 | paths:
4 | /test:
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] openapi.yaml:15:5 at #/components/schemas/EmptySchema
Expand All @@ -28,7 +28,7 @@ Expected type \`Schema\` (object) but got \`null\`
referenced from openapi.yaml:12:17 at #/paths/~1test/get/responses/200/content/application~1json/schema
Error was generated by the spec rule.
Error was generated by the struct rule.
/openapi.yaml: validated in <test>ms
Expand Down
2 changes: 1 addition & 1 deletion __tests__/lint/oas3.1-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Must contain at least one of the following fields: paths, components, webhooks.
| ^^^^^^^^^^^^
24 |
Error was generated by the spec rule.
Error was generated by the struct rule.
/openapi.yaml: validated in <test>ms
Expand Down
14 changes: 7 additions & 7 deletions __tests__/lint/operation-security-scheme-oas2-error/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The field \`name\` is not allowed here.
15 | description: basic auth
16 | x-internal: true
Error was generated by the spec rule.
Error was generated by the struct rule.
[2] openapi.yaml:22:5 at #/securityDefinitions/bearerAuth/flows
Expand All @@ -30,7 +30,7 @@ Did you mean: flow ?
23 | x-internal: true
24 | testProp: test
Error was generated by the spec rule.
Error was generated by the struct rule.
[3] openapi.yaml:24:5 at #/securityDefinitions/bearerAuth/testProp
Expand All @@ -44,7 +44,7 @@ Property \`testProp\` is not expected here.
25 | oauthImplicit:
26 | type: oauth2
Error was generated by the spec rule.
Error was generated by the struct rule.
[4] openapi.yaml:30:5 at #/securityDefinitions/oauthImplicit/tokenUrl
Expand All @@ -58,7 +58,7 @@ The field \`tokenUrl\` is not allowed here.
31 | scopes:
32 | 'write:pets': 'modify pets in your account'
Error was generated by the spec rule.
Error was generated by the struct rule.
[5] openapi.yaml:40:5 at #/securityDefinitions/oauthAccessCode/name
Expand All @@ -72,7 +72,7 @@ The field \`name\` is not allowed here.
41 | scopes:
42 | 'write:pets': 'modify pets in your account'
Error was generated by the spec rule.
Error was generated by the struct rule.
[6] openapi.yaml:47:5 at #/securityDefinitions/oauthApplication/authorizationUrl
Expand All @@ -86,7 +86,7 @@ The field \`authorizationUrl\` is not allowed here.
48 | tokenUrl: 'http://tokenUrl'
49 | description: oauth application
Error was generated by the spec rule.
Error was generated by the struct rule.
[7] openapi.yaml:56:5 at #/securityDefinitions/oauthPassword/authorizationUrl
Expand All @@ -100,7 +100,7 @@ The field \`authorizationUrl\` is not allowed here.
57 | tokenUrl: 'http://tokenUrl'
58 | description: oauth password
Error was generated by the spec rule.
Error was generated by the struct rule.
/openapi.yaml: validated in <test>ms
Expand Down
Loading

0 comments on commit 99f13be

Please sign in to comment.