Skip to content

Commit

Permalink
docs: mark 'yes' and no as required, add more details to variants (#…
Browse files Browse the repository at this point in the history
…3984)

This change adds a little more detail to the client metrics schema. The
description for variants felt a
little unclear.

---------

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
  • Loading branch information
thomasheartman and Christopher Kolstad committed Jun 15, 2023
1 parent bb026c0 commit 2be143a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/openapi/spec/client-metrics-schema.ts
Expand Up @@ -81,7 +81,7 @@ export const clientMetricsSchema = {
},
variants: {
description:
'How many times each variant was returned',
'An object describing how many times each variant was returned. Variant names are used as properties, and the number of times they were exposed is the corresponding value (i.e. `{ [variantName]: number }`).',
type: 'object',
additionalProperties: {
type: 'integer',
Expand Down
Expand Up @@ -1540,7 +1540,7 @@ The provider you choose for your addon dictates what properties the \`parameters
"minimum": 0,
"type": "integer",
},
"description": "How many times each variant was returned",
"description": "An object describing how many times each variant was returned. Variant names are used as properties, and the number of times they were exposed is the corresponding value (i.e. \`{ [variantName]: number }\`).",
"example": {
"variantA": 15,
"variantB": 25,
Expand Down

0 comments on commit 2be143a

Please sign in to comment.