RonasIT / laravel-swagger

Laravel-Swagger is a fully automate tool which allows to generate and save swagger-based documentation after successful completing your application's feature tests.
https://ronasit.com
MIT License
150 stars 43 forks source link

#45: Add swagger spec validator to validate temp and additional doc format #82

Closed vitgrams closed 1 year ago

vitgrams commented 1 year ago

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Checklist:

vitgrams commented 1 year ago

@DenTray Following cases were handled: a) a non-json file is provided as additional doc/temp doc file; b) provided a json file with violations of the basic rules of the Swagger v2.0 specification (missing fields, fields that have invalid values, unique constraint violations, invalid $refs and violations of other specific rules).

Could you please review this code?

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 45 Code Smells

No Coverage information No Coverage information
1.4% 1.4% Duplication

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication