Skip to content

Mistake in Data Package schema #215

@martonvago

Description

@martonvago

Found a mistake in the foreign key bit of the DP schema here (I think).

Current:

"properties": {
  "fields": {
    "type": "array",
    "items": {
      "type": "string",
      "minItems": 1,
      "uniqueItems": true,
      "description": "Fields that make up the primary key."
    }
  }, ...

Should be:

"properties": {
  "fields": {
    "type": "array",
    "items": {
      "type": "string",
      "description": "Fields that make up the primary key."
    },
    "minItems": 1,
    "uniqueItems": true
  }, ...

So minItems and uniqueItems should be declared one level higher, otherwise they have no effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions