publiccode-validator

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

README

publiccode.yml web validator for Go

Get invited

This is a Go, web interface validator for publiccode.yml files, using 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.

Features

See related project for details: publiccode-parser-go

Validation from command line

The repository also contains a tool used to validate publiccode.yml files locally.

go run src/main.go

curl -XPOST localhost:5000/pc/validate -d '{
  "localisation": {
    "localisationReady": false
  },
  "description": {
    "it": {
      "shortDescription": "test"
    }
  },
  "publiccodeYmlVersion": "0.2"
}'

Docker support

The repository has a Dockerfile, used to also build the production image, and a docker-compose.yml file to facilitate the local deployment.

To build the container, run:

docker-compose up [-d] [--build]

where:

  • -d execute the containers in background

  • --build forces the containers build

To destroy the container, use:

docker-compose down

Contributing

Contributing is always appreciated. Feel free to open issues, fork or submit a Pull Request. If you want to know more about how to add new fields, check out CONTRIBUTING.md. In order to support other country-specific extensions in addition to Italy some refactoring might be needed.

See also

Maintainers

This software is maintained by the Developers Italia team.

License

© 2018-2020 Team per la Trasformazione Digitale - Presidenza del Consiglio dei Minstri

Licensed under the EUPL. The version control system provides attribution for specific lines of code.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL