Skip to content

Commit 31640b6

Browse files
committed
Address code review comments
1 parent 18a6e35 commit 31640b6

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

reference/auth.v1.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ paths:
716716
$ref: ./auth/models/consent/consent.v1.yaml
717717
operationId: GetLatestConsentByType
718718
description: Returns the latest consent version for the given type
719-
'/v1/consent/{consentType}/versions':
719+
'/v1/consents/{consentType}/versions':
720720
parameters:
721721
- $ref: '#/components/parameters/consentType'
722722
get:
@@ -782,11 +782,7 @@ paths:
782782
'/v1/users/{userId}/consents/{recordId}':
783783
parameters:
784784
- $ref: '#/components/parameters/userId'
785-
- schema:
786-
type: string
787-
name: recordId
788-
in: path
789-
required: true
785+
- $ref: '#/components/parameters/recordId'
790786
get:
791787
summary: Get User Consent Record
792788
tags: []
@@ -1096,3 +1092,9 @@ components:
10961092
required: true
10971093
schema:
10981094
$ref: ./common/models/tidepooluserid.yaml
1095+
recordId:
1096+
name: recordId
1097+
in: path
1098+
required: true
1099+
schema:
1100+
$ref: ./auth/models/consent/recordId.v1.yaml

reference/auth/models/consent/record.v1.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ x-stoplight:
44
type: object
55
properties:
66
id:
7-
type: string
8-
minLength: 1
9-
readOnly: true
7+
$ref: ./recordId.v1.yaml
108
status:
119
type: string
1210
x-stoplight:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: recordId.v1
2+
x-stoplight:
3+
id: 5aevzr0n4qx6k
4+
type: string
5+
minLength: 1
6+
readOnly: true

0 commit comments

Comments
 (0)