Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/unify output order #62

Merged
merged 2 commits into from
May 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default async function (fastify) {
openapi: {
info: {
title: 'CSAF Validator Service',
version: '1.3.1',
version: '1.3.3',
description:
'This is a service to validate documents against the CSAF standard.',
contact: {
Expand Down
4 changes: 2 additions & 2 deletions backend/lib/app/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const responseSchema = {
},
},
},
infos: {
warnings: {
type: 'array',
items: {
type: 'object',
Expand All @@ -104,7 +104,7 @@ const responseSchema = {
},
},
},
warnings: {
infos: {
type: 'array',
items: {
type: 'object',
Expand Down
2 changes: 1 addition & 1 deletion documents/generated/asciidoc/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
6.5.0
16 changes: 8 additions & 8 deletions documents/generated/asciidoc/index.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= CSAF Validator Service
[email protected]
1.3.1
1.3.3
:toc: left
:numbered:
:toclevels: 3
Expand Down Expand Up @@ -249,15 +249,15 @@ endif::internal-generation[]
|
|

| infos
| warnings
| X
| List of <<_api_v1_validate_post_200_response_tests_inner_infos_inner>>
| List of <<_api_v1_validate_post_200_response_tests_inner_warnings_inner>>
|
|

| warnings
| infos
| X
| List of <<_api_v1_validate_post_200_response_tests_inner_infos_inner>>
| List of <<_api_v1_validate_post_200_response_tests_inner_warnings_inner>>
|
|

Expand Down Expand Up @@ -301,12 +301,12 @@ endif::internal-generation[]
|===


[#ApiV1ValidatePost200ResponseTestsInnerInfosInner]
=== _ApiV1ValidatePost200ResponseTestsInnerInfosInner_
[#ApiV1ValidatePost200ResponseTestsInnerWarningsInner]
=== _ApiV1ValidatePost200ResponseTestsInnerWarningsInner_



[.fields-ApiV1ValidatePost200ResponseTestsInnerInfosInner]
[.fields-ApiV1ValidatePost200ResponseTestsInnerWarningsInner]
[cols="2,1,2,4,1"]
|===
| Field Name| Required| Type| Description| Format
Expand Down
2 changes: 1 addition & 1 deletion documents/generated/html/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.4.0
6.5.0
10 changes: 5 additions & 5 deletions documents/generated/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h1>CSAF Validator Service</h1>
<div class="app-desc">This is a service to validate documents against the CSAF standard.</div>
<div class="app-desc">More information: <a href="https://github.com/secvisogram/csaf-validator-service">https://github.com/secvisogram/csaf-validator-service</a></div>
<div class="app-desc">Contact Info: <a href="[email protected]">[email protected]</a></div>
<div class="app-desc">Version: 1.3.1</div>
<div class="app-desc">Version: 1.3.3</div>
<div class="app-desc">BasePath:</div>
<div class="license-info">MIT</div>
<div class="license-url">https://github.com/secvisogram/csaf-validator-service/blob/main/LICENSE</div>
Expand Down Expand Up @@ -356,7 +356,7 @@ <h3>Table of Contents</h3>
<li><a href="#_api_v1_validate_post_200_response"><code>_api_v1_validate_post_200_response</code> - </a></li>
<li><a href="#_api_v1_validate_post_200_response_tests_inner"><code>_api_v1_validate_post_200_response_tests_inner</code> - </a></li>
<li><a href="#_api_v1_validate_post_200_response_tests_inner_errors_inner"><code>_api_v1_validate_post_200_response_tests_inner_errors_inner</code> - </a></li>
<li><a href="#_api_v1_validate_post_200_response_tests_inner_infos_inner"><code>_api_v1_validate_post_200_response_tests_inner_infos_inner</code> - </a></li>
<li><a href="#_api_v1_validate_post_200_response_tests_inner_warnings_inner"><code>_api_v1_validate_post_200_response_tests_inner_warnings_inner</code> - </a></li>
<li><a href="#_api_v1_validate_post_request"><code>_api_v1_validate_post_request</code> - </a></li>
<li><a href="#_api_v1_validate_post_request_tests_inner"><code>_api_v1_validate_post_request_tests_inner</code> - </a></li>
<li><a href="#_api_v1_validate_post_request_tests_inner_oneOf"><code>_api_v1_validate_post_request_tests_inner_oneOf</code> - </a></li>
Expand Down Expand Up @@ -384,8 +384,8 @@ <h3><a name="_api_v1_validate_post_200_response_tests_inner"><code>_api_v1_valid
<div class='model-description'></div>
<div class="field-items">
<div class="param">errors </div><div class="param-desc"><span class="param-type"><a href="#_api_v1_validate_post_200_response_tests_inner_errors_inner">array[_api_v1_validate_post_200_response_tests_inner_errors_inner]</a></span> </div>
<div class="param">infos </div><div class="param-desc"><span class="param-type"><a href="#_api_v1_validate_post_200_response_tests_inner_infos_inner">array[_api_v1_validate_post_200_response_tests_inner_infos_inner]</a></span> </div>
<div class="param">warnings </div><div class="param-desc"><span class="param-type"><a href="#_api_v1_validate_post_200_response_tests_inner_infos_inner">array[_api_v1_validate_post_200_response_tests_inner_infos_inner]</a></span> </div>
<div class="param">warnings </div><div class="param-desc"><span class="param-type"><a href="#_api_v1_validate_post_200_response_tests_inner_warnings_inner">array[_api_v1_validate_post_200_response_tests_inner_warnings_inner]</a></span> </div>
<div class="param">infos </div><div class="param-desc"><span class="param-type"><a href="#_api_v1_validate_post_200_response_tests_inner_warnings_inner">array[_api_v1_validate_post_200_response_tests_inner_warnings_inner]</a></span> </div>
<div class="param">isValid </div><div class="param-desc"><span class="param-type"><a href="#boolean">Boolean</a></span> </div>
<div class="param">name </div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> </div>
</div> <!-- field-items -->
Expand All @@ -399,7 +399,7 @@ <h3><a name="_api_v1_validate_post_200_response_tests_inner_errors_inner"><code>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="_api_v1_validate_post_200_response_tests_inner_infos_inner"><code>_api_v1_validate_post_200_response_tests_inner_infos_inner</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<h3><a name="_api_v1_validate_post_200_response_tests_inner_warnings_inner"><code>_api_v1_validate_post_200_response_tests_inner_warnings_inner</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'></div>
<div class="field-items">
<div class="param">instancePath </div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> </div>
Expand Down