forked from italia/publiccode-parser-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensions.go
48 lines (41 loc) · 1.92 KB
/
extensions.go
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
package publiccode
// Country-specific extensions
//
// While the standard is structured to be meaningful on an international level,
// there are additional information that can be added that makes sense in specific
// countries, such as declaring compliance with local laws or regulations.
// The provided extension mechanism is the usage of country-specific sections.
//
// All country-specific sections are contained in a section named with
// the two-letter lowercase ISO 3166-1 alpha-2 country code.
//
// For instance "spid" is a property for Italian software declaring whether
// the software is integrated with the Italian Public Identification System.
// Reference: https://github.com/publiccodenet/publiccode.yml/blob/develop/schema.md
// ExtensionITVersion declares the latest supported version of the 'it' extension
var ExtensionITVersion = "0.2"
// ExtensionITSupportedVersions declares the versions of the 'it' extension
// supported by this parser. We also support legacy publiccode.yml files
// which did not contain the it/countryExtensionVersion key.
var ExtensionITSupportedVersions = []string{"0.2"}
// ExtensionIT is the country-specific extension for Italy.
// Reference: https://github.com/publiccodenet/publiccode.yml/blob/develop/schema.it.md
type ExtensionIT struct {
CountryExtensionVersion string `yaml:"countryExtensionVersion"`
Conforme struct {
LineeGuidaDesign bool `yaml:"lineeGuidaDesign,omitempty"`
ModelloInteroperabilita bool `yaml:"modelloInteroperabilita"`
MisureMinimeSicurezza bool `yaml:"misureMinimeSicurezza"`
GDPR bool `yaml:"gdpr"`
} `yaml:"conforme"`
Riuso struct {
CodiceIPA string `yaml:"codiceIPA,omitempty" validate:"omitempty,is_italian_ipa_code"`
} `yaml:"riuso,omitempty"`
Piattaforme struct {
Spid bool `yaml:"spid"`
Pagopa bool `yaml:"pagopa"`
Cie bool `yaml:"cie"`
Anpr bool `yaml:"anpr"`
Io bool `yaml:"io"`
} `yaml:"piattaforme"`
}