Skip to content

Online validation broken? #12

@cmahnke

Description

@cmahnke

I'm not sure if the is the source repository for https://linked.art/software/validator/

But either the validation infrastructure is completely broken or at leas some examples aren't

Example taken from https://linked.art/model/object/production/:

{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "https://linked.art/example/object/nightwatch/5",
  "type": "HumanMadeObject",
  "_label": "Night Watch by Rembrandt",
  "produced_by": {
    "type": "Production",
    "timespan": {
      "type": "TimeSpan",
      "_label": "1642",
      "begin_of_the_begin": "1642-01-01T00:00:00Z",
      "end_of_the_end": "1642-12-31T23:59:59Z"
    },
    "took_place_at": [
      {
        "id": "https://linked.art/example/place/amsterdam",
        "type": "Place",
        "_label": "Amsterdam"
      }
    ],
    "carried_out_by": [
      {
        "id": "https://linked.art/example/person/rembrandt",
        "type": "Person",
        "_label": "Rembrandt"
      }
    ]
  }
}

Copy it and paste it to the JSON field of the validator. It's reported to be invalid.

If I try to validate something locally using boon, I'll get problems to get it to working:

schema /tmp/json-validator/schema/linked_art.json: failed
https://linked.art/api/1.0/schema/core.json# is not valid against metaschema: jsonschema validation failed with https://json-schema.org/draft/2020-12/schema#
- at '/$defs/ContextStringOrArray/anyOf/1/items': want boolean or object, but got array

The schema is itself seems to be broken, boon uses '2020' as default, as far as I can see it's the same version as the Schema files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions