Skip to content

Commit 7348afb

Browse files
committed
DMP-5276-OpenapiValidator
Added open api validation
1 parent d4b0ec6 commit 7348afb

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -400,20 +400,6 @@ This repo contains overrides for the default dev environment configuration, cont
400400
| enable_darts_portal | Deploys a DARTS portal instance alongside the API in the dev environment |
401401
| enable_darts_fullstack | Not yet supported, but will deploy the full DARTS stack alongside the API in the dev environment |
402402
403-
## OpenAPI Specification and Data Schema Validation
404-
405-
This repository uses spectral to validate OpenAPI specifications. To install spectral, you can use npm or yarn:
406-
407-
https://docs.stoplight.io/docs/spectral/b8391e051b7d8-installation
408-
409-
To validate the OpenAPI specification using spectral, run the following command from the root of the repository:
410-
411-
```bash
412-
spectral lint --verbose "src/main/resources/openapi/**/*.{yml,yaml}"
413-
```
414-
415-
Documentation: https://stoplight.io/open-source/spectral
416-
417403
## OpenAPI Validation
418404
419405
The application uses OpenAPI validation to ensure that incoming requests and outgoing responses conform to the OpenAPI specification. To install the IBM OpenAPI
@@ -429,7 +415,11 @@ lint-openapi "src/main/resources/openapi/**/*.yaml"
429415
430416
For more information on OpenAPI validation with IBM openapi validator, see the [openapi validator](https://github.com/IBM/openapi-validator).
431417
432-
Validate the data payload JSON Schemas:
418+
This OpenAPI validation uses spectral ruleset to validate. To install spectral, you can use npm or yarn:
419+
420+
https://docs.stoplight.io/docs/spectral/b8391e051b7d8-installation
421+
422+
Documentation: https://stoplight.io/open-source/spectral
433423
434424
## License
435425

0 commit comments

Comments
 (0)