Change openapi.json to be formatted and corrected openapi#2
Change openapi.json to be formatted and corrected openapi#2ctII wants to merge 0 commit intoCWE-CAPEC:mainfrom
Conversation
|
@ctII - Thanks - is made those changes myself, so I'm closing this MR. You should be able to pull and get exactly what you proposed. |
This is not completely correct, since this PR also included formatting the JSON using jq to fix formatting inconsistencies in the spec file For example line 173, while correct JSON, is not consistent formatting. This doesn't break any parsers, but makes it more difficult to read manually. Not to mention the formatted JSON spec file is actually smaller than the unformatted version Line 173 in d1b4cf4 |
|
I'll look into it |
|
PR #3 has been opened that is solely the formatting aspect of this PR |
This change runs
jqto format the openapi.json to remove extra white spacing and generally format the original spec to consistent formattingThen moves the InternalServerError to the
components/responsessection that is referenced in the already written api endpoints, instead of schemas/responsesThen fixes the reference to SuggestionComment
This resolves all errors that https://editor.swagger.io/ shows when using the openapi.json
swagger editor errors:
actual difference excluding the general formatting changes
out of diff