Skip to content

Commit a3fcb8c

Browse files
authored
Add tags to tell us more, streamline schemas (#82)
* Add tags to tell us more, streamline schemas * Add confidence_threshold property to ratings
1 parent bce9dd8 commit a3fcb8c

1 file changed

Lines changed: 41 additions & 48 deletions

File tree

specification/openapi.yaml

Lines changed: 41 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ components:
968968
- rating
969969
- bbox
970970
- resolution
971+
- confidence_threshold
971972
- tags
972973
properties:
973974
rating:
@@ -982,6 +983,12 @@ components:
982983
description: |-
983984
Pixel resolution in meters at the time of the rating. Indicates how closely
984985
the user was inspecting the data when forming their opinion.
986+
confidence_threshold:
987+
type: integer
988+
minimum: 0
989+
maximum: 100
990+
description: |-
991+
Confidence threshold (0-100 %) that was selected when the user submitted the rating.
985992
tags:
986993
type: array
987994
minItems: 1
@@ -1045,54 +1052,40 @@ components:
10451052
applied dedup logic and updated an existing record.
10461053
10471054
TellUsMoreRequest:
1048-
type: object
1049-
required:
1050-
- quality_feedback
1051-
- use_case
1052-
- bbox
1053-
- resolution
1054-
properties:
1055-
rating:
1056-
type: integer
1057-
enum: [1, 2, 3]
1058-
description: |-
1059-
Optional rating carried over from the tile-rating form if the
1060-
user rated before clicking "Tell Us More".
1061-
quality_feedback:
1062-
type: string
1063-
minLength: 1
1064-
maxLength: 5000
1065-
description: |-
1066-
Required. Response to: "What was good/bad? How must the field
1067-
boundaries improve to be useful to you?"
1068-
use_case:
1069-
type: string
1070-
minLength: 1
1071-
maxLength: 2000
1072-
description: |-
1073-
Required. Response to: "How would you like to use field
1074-
boundaries? Tell us about your use case."
1075-
name:
1076-
type: string
1077-
maxLength: 200
1078-
description: Optional submitter name.
1079-
email:
1080-
type: string
1081-
format: email
1082-
maxLength: 254
1083-
description: Optional submitter email.
1084-
organization:
1085-
type: string
1086-
maxLength: 200
1087-
description: Optional submitter organization.
1088-
bbox:
1089-
$ref: '#/components/schemas/Bbox'
1090-
resolution:
1091-
type: number
1092-
minimum: 0
1093-
description: |-
1094-
Pixel resolution in meters at the time of the feedback submission.
1095-
Indicates how closely the user was inspecting the data when forming their opinion.
1055+
allOf:
1056+
- $ref: '#/components/schemas/TileRatingRequest'
1057+
- type: object
1058+
required:
1059+
- quality_feedback
1060+
- use_case
1061+
properties:
1062+
quality_feedback:
1063+
type: string
1064+
minLength: 1
1065+
maxLength: 5000
1066+
description: |-
1067+
Required. Response to: "What was good/bad? How must the field
1068+
boundaries improve to be useful to you?"
1069+
use_case:
1070+
type: string
1071+
minLength: 1
1072+
maxLength: 2000
1073+
description: |-
1074+
Required. Response to: "How would you like to use field
1075+
boundaries? Tell us about your use case."
1076+
name:
1077+
type: string
1078+
maxLength: 200
1079+
description: Optional submitter name.
1080+
email:
1081+
type: string
1082+
format: email
1083+
maxLength: 254
1084+
description: Optional submitter email.
1085+
organization:
1086+
type: string
1087+
maxLength: 200
1088+
description: Optional submitter organization.
10961089
TellUsMoreResponse:
10971090
type: object
10981091
required:

0 commit comments

Comments
 (0)