-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Precise wording for api example (#7783)
Enhance composite type filter example in open-api
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
'**, **', | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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( | ||
'**, **', | ||
|
@@ -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: | ||
|