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/scripts/config/vale/styles/config/vocabularies/words/accept.txt b/scripts/config/vale/styles/config/vocabularies/words/accept.txt index e19b75e..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,8 @@ Dependabot Gitleaks Grype idempotence +lxml +Makefile npm OAuth Octokit diff --git a/specification/proxygen-cli/README.md b/specification/proxygen-cli/README.md index 30f15d4..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, 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