Skip to content

Commit

Permalink
* Allow 4-char Facility codes like we do for Studios
Browse files Browse the repository at this point in the history
* Add WDAS
* Bump schema to version 2.0.0
  • Loading branch information
radford-for-smpte authored Nov 18, 2024
1 parent 56e82fd commit 304d648
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/main/data/facilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -7053,6 +7053,11 @@
"code": "WD",
"description": "WELL DONE"
},
{
"code": "WDAS",
"description": "Walt Disney Animation Studios",
"url": "https://disneyanimation.com"
},
{
"code": "WDL",
"contact": {
Expand Down
4 changes: 2 additions & 2 deletions src/main/schemas/facilities.schema.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"$schema": "http://json-schema.org/schema#",
"$id": "http://isdcf.com/ns/json-schemas/registries/facilities/1.0.0",
"$id": "http://isdcf.com/ns/json-schemas/registries/facilities/2.0.0",
"$comment": "Copyright, ISDCF <[email protected]>",
"title": "Schema for the Facilities registry of the ISDCF",
"definitions": {
"code" : {
"type": "string",
"pattern": "^[A-Z0-9]{2,3}$"
"pattern": "^[A-Z0-9]{2,4}$"
},
"url": {
"type": "string",
Expand Down
2 changes: 2 additions & 0 deletions test/facilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ describe("facilities schema", async () => {
{ code: "III", description: "I I I", contact: { name: "Bob Smith", email: "[email protected]" } },
{ code: "JJJ", description: "J J J", contact: { name: "Bob Smith", address: "1234 Main St., Anytown, State, Country" } },
{ code: "KKK", description: "K K K", contact: { email: "[email protected]" } },
{ code: "LLLL", description: "L L L L", contact: { email: "[email protected]" } },
{ code: "MMMM", description: "M M M M", obsolete: true, contact: { email: "[email protected]" }, obsoletedBy: [ "LLLL" ] },
]))
})

Expand Down

0 comments on commit 304d648

Please sign in to comment.