{
    "test_file_exists": {
        "test_name": "Checking if the mandatory files according to the contribution manual are present",
        "success": true,
        "message": [
            "The file 'schema.json' exists",
            "The file 'examples/example.json' exists",
            "The file 'examples/example-normalized.json' exists",
            "The file 'examples/example.jsonld' exists",
            "The file 'examples/example-normalized.jsonld' exists",
            "The file 'notes.yaml' exists",
            "The file 'ADOPTERS.yaml' exists"
        ]
    },
    "test_valid_json": {
        "test_name": "Checking that the mandatory json files are valid json files",
        "success": true,
        "message": [
            "file schema.json is a valid json",
            "file examples/example.json is a valid json",
            "file examples/example-normalized.json is a valid json",
            "file examples/example.jsonld is a valid json",
            "file examples/example-normalized.jsonld is a valid json"
        ]
    },
    "test_yaml_files": {
        "test_name": "Checking that ADOPTERS.yaml and notes.yaml are valid YAML files",
        "success": false,
        "message": [
            "*** The file 'ADOPTERS.yaml' is not a valid YAML file: expected '<document start>', but found '<block mapping start>'\n  in \"/var/html/www/extra/test2/repo_to_test/ADOPTERS.yaml\", line 2, column 1",
            "The file 'notes.yaml' is a valid YAML file."
        ]
    },
    "test_schema_descriptions": {
        "test_name": "Checking that the schema is properly described in all its attributes",
        "success": false,
        "message": [
            "The schema has a root description.",
            "The attribute 'allOf[0].id' is properly documented.",
            "The attribute 'allOf[0].dateCreated' is properly documented.",
            "The attribute 'allOf[0].dateModified' is properly documented.",
            "The attribute 'allOf[0].source' is properly documented.",
            "The attribute 'allOf[0].name' is properly documented.",
            "The attribute 'allOf[0].alternateName' is properly documented.",
            "The attribute 'allOf[0].description' is properly documented.",
            "The attribute 'allOf[0].dataProvider' is properly documented.",
            "The attribute 'allOf[0].owner' is properly documented.",
            "The attribute 'allOf[0].owner.items.anyOf[0]' is properly documented.",
            "The attribute 'allOf[0].owner.items.anyOf[1]' is properly documented.",
            "The attribute 'allOf[0].seeAlso' is properly documented.",
            "The attribute 'allOf[1].relatedSource' is properly documented.",
            "The attribute 'allOf[1].relatedSource.items.application' is properly documented.",
            "The attribute 'allOf[1].relatedSource.items.applicationEntityId' is properly documented.",
            "The attribute 'allOf[2].type' is properly documented.",
            "The attribute 'allOf[2].GTIN' is properly documented.",
            "The attribute 'allOf[2].origins' is properly documented.",
            "The attribute 'allOf[2].origins.Final_Vat_GRAI' is properly documented.",
            "The attribute 'allOf[2].origins.Intermediate_Vats_GRAI' is properly documented.",
            "*** The attribute 'allOf[2].origins.Intermediate_Vats_GRAI.items' is missing a description.",
            "The attribute 'allOf[2].origins.Vineyards_GLN' is properly documented.",
            "*** The attribute 'allOf[2].origins.Vineyards_GLN.items' is missing a description."
        ]
    },
    "test_schema_metadata": {
        "test_name": "Validating schema.json metadata",
        "success": true,
        "message": [
            "$schema is valid",
            "Warning: modelTags is empty",
            "$schemaVersion is valid",
            "title is valid",
            "description is valid",
            "$id is valid and points to a real site",
            "Warning: derivedFrom is missing",
            "required section is valid and contains 'id' and 'type'",
            "Warning: license is missing"
        ]
    },
    "test_string_incorrect": {
        "test_name": "Checking invalid string attributes",
        "success": true,
        "message": []
    },
    "test_valid_keyvalues_examples": {
        "test_name": "Checking that example files are valid against the schema",
        "success": true,
        "message": [
            "example.json: JSON data is valid against the schema.",
            "example.jsonld: JSON data is valid against the schema.",
            "WARNING: *** The @context URL 'https://smart-data-models.github.io/dataModel.WineTraceability/context.jsonld' does not return a valid response (HTTP 404). Ignore this if it is an unpublished data model."
        ]
    },
    "test_valid_ngsiv2": {
        "test_name": "Validating example-normalized.json as NGSI v2 normalized format",
        "success": false,
        "message": [
            "*** origins has not type"
        ]
    },
    "test_valid_ngsild": {
        "test_name": "Validating example-normalized.jsonld as NGSI-LD format",
        "success": false,
        "message": [
            "WARNING: *** The @context URL 'https://smart-data-models.github.io/dataModel.WineTraceability/context.jsonld' does not return a valid response (HTTP 404). Ignore this if it is an unpublished data model.",
            "*** Property/Relationship 'origins' is missing the 'type' field",
            "*** Invalid attribute type 'None' for 'origins'. Allowed types: ['Property', 'GeoProperty', 'Relationship', 'LanguageProperty', 'ListProperty']"
        ]
    },
    "test_duplicated_attributes": {
        "test_name": "Checking that all payload attributes are defined in the schema",
        "success": false,
        "message": [
            "The following attributes in the payload are not defined in the schema:",
            "*** Attribute 'origins.Trailers_GRAI' in the payload is not defined in the schema.",
            "*** Attribute 'origins.type' in the payload is not defined in the schema."
        ]
    },
    "test_array_object_structure": {
        "test_name": "Checking array and object attributes structure",
        "success": true,
        "message": []
    },
    "email": "alberto.abella@fiware.org"
}