File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -399,14 +399,25 @@ This repository uses spectral to validate OpenAPI specifications. To install spe
399399
400400https://docs.stoplight.io/docs/spectral/b8391e051b7d8-installation
401401
402- To validate the OpenAPI specification:
402+ To validate the OpenAPI specification using spectral, run the following command from the root of the repository :
403403
404404` ` ` bash
405405spectral lint --verbose " src/main/resources/openapi/**/*.{yml,yaml}"
406406` ` `
407407
408408Documentation: https://stoplight.io/open-source/spectral
409409
410+ # # OpenAPI Validation
411+
412+ The application uses OpenAPI validation to ensure that incoming requests and outgoing responses conform to the OpenAPI specification.
413+ To enable OpenAPI validation, the following properties are set in the application configuration:
414+
415+ ` ` ` bash
416+ lint-openapi -c lint-openapi-config.yaml " src/main/resources/openapi/**/*.yaml"
417+ ` ` `
418+
419+ For more information on OpenAPI validation with IBM openapi validator, see the [openapi validator](https://github.com/IBM/openapi-validator).
420+
410421Validate the data payload JSON Schemas:
411422
412423# ## Supported labels
Original file line number Diff line number Diff line change 1+ errorsOnly : false
2+ limits :
3+ warnings : 100
4+ outputFormat : ' json'
5+ summaryOnly : true
You can’t perform that action at this time.
0 commit comments