RockefellerArchiveCenter / rac-data-model

Working repo for Project Electron data model.
2 stars 0 forks source link

Valid rights schemas do not validate against schema #50

Closed helrond closed 4 years ago

helrond commented 4 years ago

Rights schema keys which reference arrays of nested objects are incorrectly encoded.

Current schema (snip)

"rights_notes": {
    "type": "array",
    "allOf": [{
        "$ref": "#/definitions/note"
    }]
},

Should be

"rights_notes": {
    "type": "array",
    "items": {
        "allOf": [{
            "$ref": "#/definitions/note"
        }]
    }
}