Skip to content

Commit

Permalink
Precise wording for api example (#7783)
Browse files Browse the repository at this point in the history
Enhance composite type filter example in open-api
  • Loading branch information
martmull authored Oct 17, 2024
1 parent f26c65f commit ddbfabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('computeParameters', () => {
in: 'query',
description: `Filters objects returned.
Should have the following shape: **field_1[COMPARATOR]:value_1,field_2[COMPARATOR]:value_2...
To filter on nested objects use **field.nestedField[COMPARATOR]:value_1
To filter on composite type fields use **field.subField[COMPARATOR]:value_1
**
Available comparators are **${Object.values(FilterComparators).join(
'**, **',
Expand All @@ -106,7 +106,7 @@ describe('computeParameters', () => {
},
simpleNested: {
value: 'emails.primaryEmail[eq]:[email protected]',
description: 'A simple nested filter param',
description: 'A simple composite type filter param',
},
complex: {
value:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const computeFilterParameters = (): OpenAPIV3_1.ParameterObject => {
in: 'query',
description: `Filters objects returned.
Should have the following shape: **field_1[COMPARATOR]:value_1,field_2[COMPARATOR]:value_2...
To filter on nested objects use **field.nestedField[COMPARATOR]:value_1
To filter on composite type fields use **field.subField[COMPARATOR]:value_1
**
Available comparators are **${Object.values(FilterComparators).join(
'**, **',
Expand All @@ -97,7 +97,7 @@ export const computeFilterParameters = (): OpenAPIV3_1.ParameterObject => {
},
simpleNested: {
value: 'emails.primaryEmail[eq]:[email protected]',
description: 'A simple nested filter param',
description: 'A simple composite type filter param',
},
complex: {
value:
Expand Down

0 comments on commit ddbfabf

Please sign in to comment.