From f3b8283d4fd6700a83b428aecfb7817cc27afff5 Mon Sep 17 00:00:00 2001 From: Edd Almond <102675624+eddalmond1@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:55:11 +0000 Subject: [PATCH 1/4] bugfix - ensuring prism pattern matching --- sandbox/README.md | 2 +- sandbox/app.py | 3 ++- specification/proxygen-cli/README.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sandbox/README.md b/sandbox/README.md index be5ab86..99702fb 100644 --- a/sandbox/README.md +++ b/sandbox/README.md @@ -28,7 +28,7 @@ This will stop the sandbox environment. There are a number of examples of responses which can be returned by passing specific NHS Numbers in the patient query parameter: ```bash - curl -X GET "http://0.0.0.0:9000/patient-check/ + curl -X GET "http://0.0.0.0:9000/patient-check/50000000101" -H "apikey:1" ``` or for sandbox: diff --git a/sandbox/app.py b/sandbox/app.py index 7dd0ca4..a6288e3 100644 --- a/sandbox/app.py +++ b/sandbox/app.py @@ -152,7 +152,8 @@ def get_prism_prompt_for_example(patient_examples: dict, request: Request) -> st Given the whole request, return the `Prefer:` header value if a specific example is desired. Otherwise, return `None`. """ - for patient_id, example in patient_examples.items(): + sorted_examples = sorted(patient_examples.items(), key=lambda x: len(x[0]), reverse=True) + for patient_id, example in sorted_examples: if patient_id in request.full_path: return example return None diff --git a/specification/proxygen-cli/README.md b/specification/proxygen-cli/README.md index 30f15d4..f09a8f5 100644 --- a/specification/proxygen-cli/README.md +++ b/specification/proxygen-cli/README.md @@ -7,7 +7,7 @@ to deploy our OAS specification to different environments, deploy a sandbox back ### Install Proxygen-CLI -The `proxygen-cli` package currently requires Python v3.9 or greater, but not v3.13. +The `proxygen-cli` package currently requires Python v3.9 or greater. Note: While proxygen-cli v2.x technically supports Python 3.13, its dependency constraints still require lxml <5.0, which is incompatible with Python 3.13. For Python 3.13 users, install proxygen-cli in a separate virtual environment using Python 3.11 or 3.12 until this is resolved upstream. ```bash pyenv install 3.11.1 From 7ef79693b77f07a77e3539d12912efaa2931e27e Mon Sep 17 00:00:00 2001 From: Edd Almond <102675624+eddalmond1@users.noreply.github.com> Date: Thu, 15 Jan 2026 10:04:38 +0000 Subject: [PATCH 2/4] adding vale --- scripts/config/vale/styles/config/vocabularies/words/accept.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/config/vale/styles/config/vocabularies/words/accept.txt b/scripts/config/vale/styles/config/vocabularies/words/accept.txt index e19b75e..7aeb16c 100644 --- a/scripts/config/vale/styles/config/vocabularies/words/accept.txt +++ b/scripts/config/vale/styles/config/vocabularies/words/accept.txt @@ -8,6 +8,7 @@ Dependabot Gitleaks Grype idempotence +Makefile npm OAuth Octokit @@ -15,6 +16,7 @@ onboarding Podman preprod Proxygen +proxygen Python Redocly sed From 195dc2721932c90ba9b4ffc72d02dab4f5c59dce Mon Sep 17 00:00:00 2001 From: Edd Almond <102675624+eddalmond1@users.noreply.github.com> Date: Thu, 15 Jan 2026 10:08:32 +0000 Subject: [PATCH 3/4] appeasing vale --- scripts/config/vale/styles/config/vocabularies/words/accept.txt | 1 - specification/proxygen-cli/README.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/config/vale/styles/config/vocabularies/words/accept.txt b/scripts/config/vale/styles/config/vocabularies/words/accept.txt index 7aeb16c..4dcb205 100644 --- a/scripts/config/vale/styles/config/vocabularies/words/accept.txt +++ b/scripts/config/vale/styles/config/vocabularies/words/accept.txt @@ -16,7 +16,6 @@ onboarding Podman preprod Proxygen -proxygen Python Redocly sed diff --git a/specification/proxygen-cli/README.md b/specification/proxygen-cli/README.md index f09a8f5..6e59028 100644 --- a/specification/proxygen-cli/README.md +++ b/specification/proxygen-cli/README.md @@ -7,7 +7,7 @@ to deploy our OAS specification to different environments, deploy a sandbox back ### Install Proxygen-CLI -The `proxygen-cli` package currently requires Python v3.9 or greater. Note: While proxygen-cli v2.x technically supports Python 3.13, its dependency constraints still require lxml <5.0, which is incompatible with Python 3.13. For Python 3.13 users, install proxygen-cli in a separate virtual environment using Python 3.11 or 3.12 until this is resolved upstream. +The `proxygen-cli` package currently requires Python v3.9 or greater. Note: While `proxygen-cli` v2.x technically supports Python 3.13, its dependency constraints still require lxml <5.0, which is incompatible with Python 3.13. For Python 3.13 users, install `proxygen-cli` in a separate virtual environment using Python 3.11 or 3.12 until this is resolved upstream. ```bash pyenv install 3.11.1 From e0e0d99b63d7f8683b74a04d001e83d544553297 Mon Sep 17 00:00:00 2001 From: Edd Almond <102675624+eddalmond1@users.noreply.github.com> Date: Thu, 15 Jan 2026 10:10:35 +0000 Subject: [PATCH 4/4] appeasing vale --- scripts/config/vale/styles/config/vocabularies/words/accept.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/config/vale/styles/config/vocabularies/words/accept.txt b/scripts/config/vale/styles/config/vocabularies/words/accept.txt index 4dcb205..97c21df 100644 --- a/scripts/config/vale/styles/config/vocabularies/words/accept.txt +++ b/scripts/config/vale/styles/config/vocabularies/words/accept.txt @@ -8,6 +8,7 @@ Dependabot Gitleaks Grype idempotence +lxml Makefile npm OAuth