Skip to content

Commit

Permalink
Merge pull request #716 from zapier/SUPPORTENG-984-correct-the-FieldC…
Browse files Browse the repository at this point in the history
…hoiceWithLabelSchema

SUPPORTENG-984 Correct the  'value' and 'sample' description in the  'FieldChoicesWithLabel' schema
  • Loading branch information
Osarhomiyeke authored Oct 20, 2023
2 parents d3a764e + d0c4a7f commit 3e63c86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions packages/schema/docs/build/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -858,8 +858,8 @@ An object describing a labeled choice in a static dropdown. Useful if the value

Key | Required | Type | Description
--- | -------- | ---- | -----------
`value` | **yes** | `string` | The actual value that is sent into the Zap. Should match sample exactly.
`sample` | **yes** | `string` | Displayed as light grey text in the editor. It's important that the value match the sample. Otherwise, the actual value won't match what the user picked, which is confusing.
`value` | **yes** | `string` | The actual value that is sent into the Zap. This is displayed as light grey text in the editor. Should match sample exactly.
`sample` | **yes** | `string` | A legacy field that is no longer used by the editor, but it is still required for now and should match the value.
`label` | **yes** | `string` | A human readable label for this value.

#### Examples
Expand Down Expand Up @@ -2217,4 +2217,4 @@ Represents a simplified semver string, from `0.0.0` to `999.999.999`.
* `'1000.0.0'` - _Each number can be a maximum of 3 digits_
* `'v1.0.0'` - _No letters allowed_
* `'1.0.0-beta'` - _undefined_
<!-- {% endraw %} -->
<!-- {% endraw %} -->
4 changes: 2 additions & 2 deletions packages/schema/exported-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@
"required": ["value", "sample", "label"],
"properties": {
"value": {
"description": "The actual value that is sent into the Zap. Should match sample exactly.",
"description": "The actual value that is sent into the Zap. This is displayed as light grey text in the editor. Should match sample exactly.",
"type": "string",
"minLength": 1
},
"sample": {
"description": "Displayed as light grey text in the editor. It's important that the value match the sample. Otherwise, the actual value won't match what the user picked, which is confusing.",
"description": "A legacy field that is no longer used by the editor, but it is still required for now and should match the value.",
"type": "string",
"minLength": 1
},
Expand Down
4 changes: 2 additions & 2 deletions packages/schema/lib/schemas/FieldChoiceWithLabelSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ module.exports = makeSchema({
properties: {
value: {
description:
'The actual value that is sent into the Zap. Should match sample exactly.',
'The actual value that is sent into the Zap. This is displayed as light grey text in the editor. Should match sample exactly.',
type: 'string',
minLength: 1,
},
sample: {
description:
"Displayed as light grey text in the editor. It's important that the value match the sample. Otherwise, the actual value won't match what the user picked, which is confusing.",
"A legacy field that is no longer used by the editor, but it is still required for now and should match the value.",
type: 'string',
minLength: 1,
},
Expand Down

0 comments on commit 3e63c86

Please sign in to comment.