Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/super-linter.env
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ VALIDATE_TYPESCRIPT_STANDARD=false

# Skip OPENAPI check by CHECKOV for this repo as it contains invalid OAS 3.0 specs for testing purposes
VALIDATE_CHECKOV=false
VALIDATE_OPENAPI=false

# Skip checking of specially broken specifications
FILTER_REGEX_EXCLUDE=test/projects/broken/.*
2 changes: 1 addition & 1 deletion .github/workflows/delete-dist-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ on:

jobs:
delete-dist-tag:
uses: netcracker/qubership-apihub-ci/.github/workflows/delete-dist-tag.yaml@main
uses: netcracker/qubership-apihub-ci/.github/workflows/delete-dist-tag.yaml@main
2 changes: 1 addition & 1 deletion test/merge/openapi/paths-from-specs/1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
2 changes: 1 addition & 1 deletion test/merge/openapi/paths-from-specs/2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
4 changes: 2 additions & 2 deletions test/merge/openapi/paths-from-specs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
/path2:
post:
parameters:
Expand All @@ -24,4 +24,4 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
2 changes: 1 addition & 1 deletion test/merge/openapi/security-from-specs/1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ info:
title: test
version: 0.1.0
security:
- oAuthSample: [ ]
- oAuthSample: []
2 changes: 1 addition & 1 deletion test/merge/openapi/security-from-specs/2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ info:
title: test
version: 0.1.0
security:
- oAuthSample: [ ]
- oAuthSample: []
2 changes: 1 addition & 1 deletion test/merge/openapi/security-from-specs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ info:
title: test
version: 0.1.0
security:
- oAuthSample: [ ]
- oAuthSample: []
2 changes: 1 addition & 1 deletion test/merge/openapi/security-from-template/1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ info:
title: test
version: 0.1.0
security:
- oAuthSample: [ ]
- oAuthSample: []
4 changes: 2 additions & 2 deletions test/merge/openapi/security-from-template/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ info:
title: test
version: 0.1.0
security:
- ApiKeyAuth1: [ ]
- ApiKeyAuth2: [ ]
- ApiKeyAuth1: []
- ApiKeyAuth2: []
4 changes: 2 additions & 2 deletions test/merge/openapi/security-from-template/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ info:
title: test
version: 0.1.0
security:
- ApiKeyAuth1: [ ]
- ApiKeyAuth2: [ ]
- ApiKeyAuth1: []
- ApiKeyAuth2: []
8 changes: 4 additions & 4 deletions test/merge/openapi/should-merge-with-empty-template/1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
components:
schemas:
TestSchema:
Expand All @@ -26,7 +26,7 @@ components:
responses:
'200':
description: OK
content: { }
content: {}
parameters:
x-request-id:
name: x-request-id
Expand Down Expand Up @@ -59,10 +59,10 @@ components:
userId: '$response.body#/id'
description: description
security:
- oAuthSample: [ ]
- oAuthSample: []
tags:
- name: tag1
description: desc1
externalDocs:
description: External Docs
url: https://example.com
url: https://example.com
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
components:
schemas:
TestSchema:
Expand All @@ -26,7 +26,7 @@ components:
responses:
'200':
description: OK
content: { }
content: {}
parameters:
x-request-id:
name: x-request-id
Expand Down Expand Up @@ -59,7 +59,7 @@ components:
userId: '$response.body#/id'
description: description
security:
- oAuthSample: [ ]
- oAuthSample: []
externalDocs:
description: External Docs
url: https://example.com
url: https://example.com
6 changes: 3 additions & 3 deletions test/merge/openapi/should-remove-unused-tags/1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
/api/v1/pets/test/{id}:
get:
tags:
Expand All @@ -24,7 +24,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
/api/v1/cars/test/test/{id}:
get:
tags:
Expand All @@ -35,7 +35,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
tags:
- name: Test Tag 1
description: desc1
Expand Down
6 changes: 3 additions & 3 deletions test/merge/openapi/should-remove-unused-tags/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
/api/v1/pets/test/{id}:
get:
tags:
Expand All @@ -24,7 +24,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
/api/v1/cars/test/test/{id}:
get:
tags:
Expand All @@ -35,7 +35,7 @@ paths:
description: OK
content:
application/json:
schema: { }
schema: {}
tags:
- name: Test Tag 1
description: desc1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ paths:
description: Pet object that needs to be added to the store
content:
application/json:
schema: { }
schema: {}
required: true
responses:
'200':
description: Pet updated
content:
application/json:
schema: { }
schema: {}
headers:
x-request-id:
schema:
type: string
format: uuid
example: '325d31a4-700c-11ea-bc55-0242ac130003'
example: '325d31a4-700c-11ea-bc55-0242ac130003'
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ paths:
description: Pet object that needs to be added to the store
content:
application/json:
schema: { }
schema: {}
required: true
responses:
'200':
description: Pet was updated
content:
application/json:
schema: { }
schema: {}
headers:
x-request-id:
schema:
type: string
format: uuid
example: '325d31a4-700c-11ea-bc55-0242ac130003'
example: '325d31a4-700c-11ea-bc55-0242ac130003'
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ paths:
responses:
'200':
description: OK
content: { }
content: {}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ info:
title: test
version: 0.1.0
security:
- oAuthSample: [ ]
- oAuthSample: []
4 changes: 2 additions & 2 deletions test/merge/openapi/should-throw-on-different-security/2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ info:
title: test
version: 0.1.0
security:
- ApiKeyAuth1: [ ]
- ApiKeyAuth2: [ ]
- ApiKeyAuth1: []
- ApiKeyAuth2: []
Loading
Loading