Skip to content

Commit

Permalink
Make single letter subcourts valid
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-dxw committed Jan 18, 2024
1 parent 12c57e9 commit 1120033
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog 1.0.0].

## [Release 1.3.5]

- Fix an issue with EWFC B's name taking priority for the 'ewfc' param

## [Release 1.3.4]

- Add data for EWFC B
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ds_caselaw_utils"
version = "1.3.4"
version = "1.3.5"
description = "Utilities for the National Archives Caselaw project"
authors = ["Nick Jackson <[email protected]>", "David McKee <[email protected]>", "Tim Cowlishaw <[email protected]>", "Laura Porter <[email protected]>"]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions src/ds_caselaw_utils/data/schema/courts.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Za-z]{2,}(-[A-Za-z]{1,})*$"
"pattern": "^[A-Za-z]{2,}(-[A-Za-z]+)*$"
},
"name": {
"type": "string"
Expand All @@ -33,13 +33,13 @@
},
"param": {
"type": "string",
"pattern": "^[a-z]{2,}(/[a-z]{2,})?$"
"pattern": "^[a-z]{2,}(/[a-z]+)?$"
},
"extra_params": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z]{2,}(/[a-z]{2,})?$"
"pattern": "^[a-z]{2,}(/[a-z]+)?$"
}
},
"ncn": {
Expand Down

0 comments on commit 1120033

Please sign in to comment.