-
Notifications
You must be signed in to change notification settings - Fork 3
/
api_spec_oa3.yml
91 lines (91 loc) · 2.79 KB
/
api_spec_oa3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
openapi: 3.0.1
info:
title: PC WEB VALIDATOR
description: This is a Go web interface validator for publiccode.yml files, it uses
publiccode-parser-go. `publiccode.yml` is an international standard for describing
public software. It is expected to be published in the root of open source repositories.
This parser performs syntactic and semantic validation according to the official
spec.
termsOfService: https://github.com/italia/pc-web-validator
x-api-id: 501E5354-2F69-4F0B-9BFB-6AA530430E84
x-project: software
contact:
name: Developers Italia
email: contatti@developers.italia.it
url: https://developers.italia.it
license:
name: BSD 3-Clause
url: https://github.com/sebbalex/pc-web-validator/blob/master/LICENSE
version: 0.0.2
externalDocs:
description: Find out more about Developers Italia
url: https://developers.italia.it
servers:
- url: https://publiccode-editor-test.developers.italia.it/
description: Dev env
tags:
- name: public
description: Everything about Publiccode
externalDocs:
description: Find out more
url: https://github.com/italia/publiccode.yml
paths:
/validate:
post:
tags:
- public
summary: Validate a PublicCode
operationId: validate
requestBody:
description: Publiccode object that needs to be validated
content:
application/json:
schema:
$ref: '#/components/schemas/PublicCode'
application/x-yaml:
schema:
$ref: '#/components/schemas/PublicCode'
required: true
parameters:
- name: disableNetwork
in: query
schema:
type: boolean
default: false
example: false
description: |
By default this API resolves remote references and
validate the existence of asset files like logos and
screenshots.
responses:
200:
description: |-
Validation Ok, return latest valid publiccode version
content:
application/json:
schema:
$ref: '#/components/schemas/PublicCode'
application/x-yaml:
schema:
$ref: '#/components/schemas/PublicCode'
422:
description: Validation failed
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ValidationError'
components:
schemas:
ValidationError:
properties:
Key:
type: string
Reason:
type: string
required:
- Key
- Reason
PublicCode:
$ref: https://raw.githubusercontent.com/italia/publiccode-editor/master/src/app/editor_generator_schema.json