-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Voeg linter regels toe voor homepage
- Loading branch information
1 parent
79b5742
commit ae74c4f
Showing
11 changed files
with
302 additions
and
4 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
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,6 +1,7 @@ | ||
|
||
/testcases/cor-api/openapi.json | ||
37:13 error missing-home-page There does not exist a resource `/` that should resolve to the homepage paths | ||
181:29 warning paths-kebab-case /laatsteWijziging is not kebab-case. paths./laatsteWijziging | ||
774:30 warning use-problem-schema Your schema doesn't seem to match RFC7807. Are you sure it is ok? #/components/schemas/HealthCheckResponse/properties components.schemas.HealthCheckResponse.properties | ||
|
||
✖ 2 problems (0 errors, 2 warnings, 0 infos, 0 hints) | ||
✖ 3 problems (1 error, 2 warnings, 0 infos, 0 hints) |
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,5 @@ | ||
|
||
/testcases/homepage-failure/openapi.json | ||
31:29 warning operation-success-response Operation must have at least one "2xx" or "3xx" response. paths./.get.responses | ||
|
||
✖ 1 problem (0 errors, 1 warning, 0 infos, 0 hints) |
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,57 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "COR API Services", | ||
"description": "Deze Logius REST API's bieden de openbare informatie voor organisaties", | ||
"contact": { | ||
"name": "Logius", | ||
"url": "https://www.logius.nl/diensten/digikoppeling/", | ||
"email": "[email protected]" | ||
}, | ||
"version": "1.2.9-SNAPSHOT" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://oinregister.logius.nl/api/v1" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
], | ||
"tags": [{"name": "Homepage"}], | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"tags": ["Homepage"], | ||
"summary": "Homepage", | ||
"description": "Homepage with a description", | ||
"operationId": "getHomepage", | ||
"responses": { | ||
"403": { | ||
"description": "Unauthorized" | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"default": { | ||
"type": "oauth2", | ||
"flows": { | ||
"implicit": { | ||
"authorizationUrl": "https://test.com", | ||
"scopes": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,5 @@ | ||
|
||
/testcases/homepage-missing/openapi.json | ||
24:13 error missing-home-page There does not exist a resource `/` that should resolve to the homepage paths | ||
|
||
✖ 1 problem (1 error, 0 warnings, 0 infos, 0 hints) |
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,66 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "COR API Services", | ||
"description": "Deze Logius REST API's bieden de openbare informatie voor organisaties", | ||
"contact": { | ||
"name": "Logius", | ||
"url": "https://www.logius.nl/diensten/digikoppeling/", | ||
"email": "[email protected]" | ||
}, | ||
"version": "1.2.9-SNAPSHOT" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://oinregister.logius.nl/api/v1" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
], | ||
"tags": [{"name": "Homepage"}], | ||
"paths": { | ||
"/no-homepage": { | ||
"get": { | ||
"tags": ["Homepage"], | ||
"summary": "Homepage", | ||
"description": "Homepage with a description", | ||
"operationId": "getHomepage", | ||
"responses": { | ||
"200": { | ||
"description": "Homepage content", | ||
"headers": { | ||
"API-Version": { | ||
"description": "Current version", | ||
"style": "simple", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"default": { | ||
"type": "oauth2", | ||
"flows": { | ||
"implicit": { | ||
"authorizationUrl": "https://test.com", | ||
"scopes": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,5 @@ | ||
|
||
/testcases/homepage-no-get/openapi.json | ||
25:13 error home-page-no-get-response There should be a GET endpoint for the `/` resource paths./ | ||
|
||
✖ 1 problem (1 error, 0 warnings, 0 infos, 0 hints) |
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,66 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "COR API Services", | ||
"description": "Deze Logius REST API's bieden de openbare informatie voor organisaties", | ||
"contact": { | ||
"name": "Logius", | ||
"url": "https://www.logius.nl/diensten/digikoppeling/", | ||
"email": "[email protected]" | ||
}, | ||
"version": "1.2.9-SNAPSHOT" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://oinregister.logius.nl/api/v1" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
], | ||
"tags": [{"name": "Homepage"}], | ||
"paths": { | ||
"/": { | ||
"post": { | ||
"tags": ["Homepage"], | ||
"summary": "Homepage", | ||
"description": "Homepage with a description", | ||
"operationId": "getHomepage", | ||
"responses": { | ||
"200": { | ||
"description": "Homepage content", | ||
"headers": { | ||
"API-Version": { | ||
"description": "Current version", | ||
"style": "simple", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"default": { | ||
"type": "oauth2", | ||
"flows": { | ||
"implicit": { | ||
"authorizationUrl": "https://test.com", | ||
"scopes": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
No results with a severity of 'error' found! |
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,66 @@ | ||
{ | ||
"openapi": "3.0.3", | ||
"info": { | ||
"title": "COR API Services", | ||
"description": "Deze Logius REST API's bieden de openbare informatie voor organisaties", | ||
"contact": { | ||
"name": "Logius", | ||
"url": "https://www.logius.nl/diensten/digikoppeling/", | ||
"email": "[email protected]" | ||
}, | ||
"version": "1.2.9-SNAPSHOT" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://oinregister.logius.nl/api/v1" | ||
} | ||
], | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
], | ||
"tags": [{"name": "Homepage"}], | ||
"paths": { | ||
"/": { | ||
"get": { | ||
"tags": ["Homepage"], | ||
"summary": "Homepage", | ||
"description": "Homepage with a description", | ||
"operationId": "getHomepage", | ||
"responses": { | ||
"200": { | ||
"description": "Homepage content", | ||
"headers": { | ||
"API-Version": { | ||
"description": "Current version", | ||
"style": "simple", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"default": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"default": { | ||
"type": "oauth2", | ||
"flows": { | ||
"implicit": { | ||
"authorizationUrl": "https://test.com", | ||
"scopes": {} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |