Skip to content

Schema change / purl-test: Add validation test type #692

@mjherzog

Description

@mjherzog

This issue is intended to raise the visibility and documentation of a proposed addition to purl-test-schema.json from its introduction in PR #614 which proposes a new test type for validation. The PR covers the proposed change to the schema and corresponding updates to the 32 registered PURL types.

The definition of a validation test_type in #614 is: " "validation": "A PURL validation test, checking if a PURL follows all the rules for a particular ecosystem."
A better-stated definition is: "A test to validate that an input PURL string complies with the rules for its PURL type."

The proposal for the new validation test_type also adds the new property of a purl_validation_message to the PURL test schema for validation tests.

"purl_validation_message": {
      "title": "PURL validation message",
      "description": "Validation severity and message to use as a test expected output when validating a PURL.",
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "severity": {
          "title": "Validation severity",
          "description": "Validation severity.",
          "type": "string",
          "enum": [
            "info",
            "warning",
            "error"
          ],
          "meta:enum": {
            "info": "Informational validation message",
            "warning": "Warning validation message",
            "error": "Error validation message"
          }
        },
        "message": {
          "title": "Validation message",
          "description": "Validation message.",
          "type": "string"
        }
      }
    },

The tasks to implement this change are:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Test suiteschema changeChange to a PURL schema - requires review and approval by TC54/TG2

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions