Skip to content
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
7 changes: 7 additions & 0 deletions fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ func validateFieldsV0(publiccode PublicCode, parser Parser, network bool) error
}
}

if publiccodev0.It != nil && publiccodev0.It.Conforme != nil {
vr = append(vr, ValidationWarning{
"it.conforme",
"This key is DEPRECATED and will be removed in the future. It's safe to drop it", 0, 0,
})
}

if len(vr) == 0 {
return nil
}
Expand Down
3 changes: 3 additions & 0 deletions parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,9 @@ func TestValidWithWarningsTestcasesV0(t *testing.T) {
ValidationWarning{"inputTypes", "This key is DEPRECATED and will be removed in the future. It's safe to drop it", 48, 1},
ValidationWarning{"outputTypes", "This key is DEPRECATED and will be removed in the future. It's safe to drop it", 50, 1},
},
"valid_with_it_conforme.yml": ValidationResults{
ValidationWarning{"it.conforme", "This key is DEPRECATED and will be removed in the future. It's safe to drop it", 120, 3},
},
}

dir := "testdata/v0/valid_with_warnings/"
Expand Down
46 changes: 20 additions & 26 deletions testdata/v0/invalid/landingURL_invalid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ description:
localisedName: Medusa
shortDescription: "A really interesting software."
longDescription: >
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.

documentation: "https://docs.italia.it"
apiDocumentation: "https://developers.italia.it/it/api"

features:
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
videos: # Demo videos of the software
- https://www.youtube.com/watch?v=RaHmGbBOP84
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
videos: # Demo videos of the software
- https://www.youtube.com/watch?v=RaHmGbBOP84
awards:
- 1st Price Software of the year
- 1st Price Software of the year

legal:
license: AGPL-3.0-or-later # SPDX expression of license
license: AGPL-3.0-or-later # SPDX expression of license
mainCopyrightOwner: City of Chicago
repoOwner: City of Chicago

Expand Down Expand Up @@ -119,12 +119,6 @@ dependsOn:
optional: true

it:
conforme:
lineeGuidaDesign: true
modelloInteroperabilita: true
misureMinimeSicurezza: true
gdpr: true

riuso:
codiceIPA: c_h501

Expand Down
40 changes: 17 additions & 23 deletions testdata/v0/invalid/landingURL_wrong_type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@ description:
localisedName: Medusa
shortDescription: "A really interesting software."
longDescription: >
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.

documentation: "https://docs.italia.it"
apiDocumentation: "https://developers.italia.it/it/api"

features:
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world

legal:
license: AGPL-3.0-or-later # SPDX expression of license
license: AGPL-3.0-or-later # SPDX expression of license
mainCopyrightOwner: City of Chicago
repoOwner: City of Chicago

Expand Down Expand Up @@ -115,12 +115,6 @@ dependsOn:
optional: true

it:
conforme:
lineeGuidaDesign: true
modelloInteroperabilita: true
misureMinimeSicurezza: true
gdpr: true

riuso:
codiceIPA: c_h501

Expand Down
46 changes: 20 additions & 26 deletions testdata/v0/invalid/no-network/landingURL_invalid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,34 @@ description:
localisedName: Medusa
shortDescription: "A really interesting software."
longDescription: >
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.

documentation: "https://docs.italia.it"
apiDocumentation: "https://developers.italia.it/it/api"

features:
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
videos: # Demo videos of the software
- https://www.youtube.com/watch?v=RaHmGbBOP84
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
videos: # Demo videos of the software
- https://www.youtube.com/watch?v=RaHmGbBOP84
awards:
- 1st Price Software of the year
- 1st Price Software of the year

legal:
license: AGPL-3.0-or-later # SPDX expression of license
license: AGPL-3.0-or-later # SPDX expression of license
mainCopyrightOwner: City of Chicago
repoOwner: City of Chicago

Expand Down Expand Up @@ -119,12 +119,6 @@ dependsOn:
optional: true

it:
conforme:
lineeGuidaDesign: true
modelloInteroperabilita: true
misureMinimeSicurezza: true
gdpr: true

riuso:
codiceIPA: c_h501

Expand Down
43 changes: 19 additions & 24 deletions testdata/v0/valid/countryExtensionVersion_1.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,31 @@ description:
localisedName: Medusa
shortDescription: "A really interesting software."
longDescription: >
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 158 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 316 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 474 characters.
Very long description of this software, also split
on multiple rows. You should note what the software
is and why one should need it. This is 632 characters.

documentation: "https://docs.italia.it"
apiDocumentation: "https://developers.italia.it/it/api"

features:
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
- Very important feature
- Will run without a problem
- Has zero bugs
- Solves all the problems of the world
videos:
- https://www.youtube.com/watch?v=RaHmGbBOP84
- https://www.youtube.com/watch?v=RaHmGbBOP84
awards:
- 1st Price Software of the year
- 1st Price Software of the year

legal:
license: AGPL-3.0-or-later
Expand All @@ -74,7 +74,7 @@ maintenance:
contacts:
- email: [email protected]
name: Mario Rossi
phone: '+390412501953'
phone: "+390412501953"

localisation:
localisationReady: true
Expand Down Expand Up @@ -106,11 +106,6 @@ dependsOn:

it:
countryExtensionVersion: "1.0"
conforme:
lineeGuidaDesign: false
modelloInteroperabilita: false
misureMinimeSicurezza: false
gdpr: false

riuso:
codiceIPA: c_h501
Expand Down
Loading