Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Apr 30, 2024
1 parent 1d8c4ee commit 7f45682
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _tools/frontmatter-validator/schemas/page.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,17 @@
}
},
"date": {
"type": "string",
"description": "The Jekyll date of the document if we need to set it manually.",
"format": "date-time"
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "string",
"pattern": "\\d{4}-[01]\\d-[0-3]\\d [0-2]\\d:[0-5]\\d(:[0-5]\\d)? ([+-][0-2]\\d[0-5]\\d)"
}
]
}
},
"required": [
Expand Down

0 comments on commit 7f45682

Please sign in to comment.