Skip to content

Commit 7ced615

Browse files
committed
fix an issue with siteid path parameters
In trying to re-use the model of the siteid, which is marked read-only, it became known that marking a path parameter as read-only causes the generated code to ignore the values passed, resulting in 400 bad request errors. So I've duplicated the model-based objectid schema to a property and dropped the read-only property, so now all works as expected. BACK-3632
1 parent 755d1b4 commit 7ced615

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

reference/clinic.v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2664,7 +2664,7 @@ components:
26642664
in: path
26652665
required: true
26662666
schema:
2667-
$ref: ./clinic/models/siteId.v1.yaml
2667+
$ref: ./common/parameters/objectId.v1.yaml
26682668
userId:
26692669
name: userId
26702670
in: path
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: Object Id
2+
type: string
3+
description: String representation of a resource id
4+
minLength: 24
5+
maxLength: 24
6+
pattern: '^[a-f0-9]{24}$'

0 commit comments

Comments
 (0)