Skip to content

Commit b4860c6

Browse files
committed
fix: fix yaml with just lint-yaml-fix
Signed-off-by: Mats Johansson <extern.mats.johansson@digg.se>
1 parent c8a22f0 commit b4860c6

File tree

6 files changed

+57
-79
lines changed

6 files changed

+57
-79
lines changed

.github/artifacts.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
54
# Artifacts Configuration for rest-api-profil-lint-processor
65
# NPM CLI application with container
76
# Package tarballs will be attached to GitHub Release as assets

.github/workflows/release-dev-workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
54
# Release Workflow Dev
65
#
76
# Triggers dev builds for testing on development branches.

.github/workflows/release-workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
54
# Release Workflow for rest-api-profil-lint-processor
65
# Uses the unified release orchestrator for NPM packages
76
name: Release

.github/workflows/test.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
11
# SPDX-FileCopyrightText: 2025 Digg - Agency for Digital Government
22
#
33
# SPDX-License-Identifier: CC0-1.0
4-
---
54
name: Run Tests
65
on:
76
push:
87
workflow_call:
9-
108
jobs:
119
test:
1210
runs-on: ubuntu-latest
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
16-
1714
- name: Set up Node.js
1815
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
1916
with:
2017
node-version: '24.13.0'
21-
2218
- name: Install dependencies
2319
run: npm ci
24-
2520
- name: Run tests
2621
run: npm run test

openapi.yaml

Lines changed: 57 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ paths:
3535
description: Validate your yaml
3636
operationId: validateContent
3737
requestBody:
38-
description: |-
39-
Yaml can be sent as a base64 encoded file or a yaml string.
40-
41-
ContentType is specifying the type of yaml content being sent
38+
description: "Yaml can be sent as a base64 encoded file or a yaml string. \n\nContentType is specifying the type of yaml content being sent"
4239
content:
4340
application/json:
4441
schema:
@@ -145,64 +142,64 @@ paths:
145142
detail: "Test error"
146143
instance: "/example"
147144
/validation/generate-report:
148-
post:
149-
tags:
150-
- validate
151-
summary: Generate status report
152-
description: Accepts result data as the request body and returns a generated status report as a downloadable excel file.
153-
operationId: generateReport
154-
requestBody:
155-
required: true
145+
post:
146+
tags:
147+
- validate
148+
summary: Generate status report
149+
description: Accepts result data as the request body and returns a generated status report as a downloadable excel file.
150+
operationId: generateReport
151+
requestBody:
152+
required: true
153+
content:
154+
application/json:
155+
schema:
156+
type: object
157+
required:
158+
- result
159+
properties:
160+
result:
161+
type: array
162+
items:
163+
$ref: '#/components/schemas/RapLPCustomSpectralDiagnosticItem'
164+
description: An array of result items used to generate the Excel report.
165+
responses:
166+
'200':
167+
description: Successful operation
168+
content:
169+
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
170+
schema:
171+
type: string
172+
format: binary
173+
example:
174+
headers:
175+
Content-Disposition:
176+
schema:
177+
type: string
178+
description: Header to indicate the filename for the downloaded file.
179+
'400':
180+
description: BAD_REQUEST
156181
content:
157182
application/json:
158183
schema:
159-
type: object
160-
required:
161-
- result
162-
properties:
163-
result:
164-
type: array
165-
items:
166-
$ref: '#/components/schemas/RapLPCustomSpectralDiagnosticItem'
167-
description: An array of result items used to generate the Excel report.
168-
responses:
169-
'200':
170-
description: Successful operation
171-
content:
172-
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
173-
schema:
174-
type: string
175-
format: binary
176-
example:
177-
headers:
178-
Content-Disposition:
179-
schema:
180-
type: string
181-
description: Header to indicate the filename for the downloaded file.
182-
'400':
183-
description: BAD_REQUEST
184-
content:
185-
application/json:
186-
schema:
187-
$ref: '#/components/schemas/ProblemDetailsDto'
188-
example:
189-
type: "about:blank"
190-
title: "Test title"
191-
status: 400
192-
detail: "Test error"
193-
instance: "/example"
194-
'500':
195-
description: INTERNAL_SERVER_ERROR
196-
content:
197-
application/json:
198-
schema:
199-
$ref: '#/components/schemas/ProblemDetailsDto'
200-
example:
201-
type: "about:blank"
202-
title: "Test title"
203-
status: 500
204-
detail: "Test error"
205-
instance: "/example"
184+
$ref: '#/components/schemas/ProblemDetailsDto'
185+
example:
186+
type: "about:blank"
187+
title: "Test title"
188+
status: 400
189+
detail: "Test error"
190+
instance: "/example"
191+
'500':
192+
description: INTERNAL_SERVER_ERROR
193+
content:
194+
application/json:
195+
schema:
196+
$ref: '#/components/schemas/ProblemDetailsDto'
197+
example:
198+
type: "about:blank"
199+
title: "Test title"
200+
status: 500
201+
detail: "Test error"
202+
instance: "/example"
206203
/validation/url:
207204
post:
208205
tags:
@@ -211,10 +208,7 @@ paths:
211208
description: Validate your yaml from remote url
212209
operationId: validateUrl
213210
requestBody:
214-
description: |-
215-
OpenApi yaml is fetched from remote server and validated on server.
216-
Feature must be enabled explicitly on server.
217-
211+
description: "OpenApi yaml is fetched from remote server and validated on server. \nFeature must be enabled explicitly on server."
218212
content:
219213
application/json:
220214
schema:
@@ -327,7 +321,6 @@ paths:
327321
status: 500
328322
detail: "Test error"
329323
instance: "/example"
330-
331324
components:
332325
schemas:
333326
ValidationRules:
@@ -495,7 +488,6 @@ components:
495488
required:
496489
- id
497490
- omrade
498-
499491
PopulatedDiagnosticRuleInfo:
500492
allOf:
501493
- $ref: '#/components/schemas/DiagnosticRuleInfo'
@@ -506,7 +498,6 @@ components:
506498
example: "OK"
507499
required:
508500
- status
509-
510501
DiagnosticReport:
511502
type: object
512503
properties:
@@ -520,7 +511,6 @@ components:
520511
required:
521512
- Notering
522513
- regler
523-
524514
DiagnosticRuleinfoSet:
525515
type: object
526516
# additionalProperties: false
@@ -537,13 +527,11 @@ components:
537527
type: array
538528
items:
539529
$ref: '#/components/schemas/DiagnosticRuleInfo'
540-
541530
RapLPDiagnostic:
542531
type: object
543532
properties:
544533
_ruleSets:
545534
$ref: '#/components/schemas/DiagnosticRuleinfoSet'
546-
547535
ValidationResponseDto:
548536
type: object
549537
properties:
@@ -558,4 +546,3 @@ components:
558546
required:
559547
- result
560548
- report
561-

publiccode.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# This repository adheres to the publiccode.yml standard by including this
66
# metadata file that makes public software easily discoverable.
77
# More info at https://github.com/italia/publiccode.yml
8-
98
publiccodeYmlVersion: '0.4.0'
109
categories:
1110
- application-development

0 commit comments

Comments
 (0)