Precise wording for api example (#7783)

Enhance composite type filter example in open-api
This commit is contained in:
martmull
2024-10-17 14:41:38 +02:00
committed by GitHub
parent f26c65fd41
commit ddbfabfc99
2 changed files with 4 additions and 4 deletions

View File

@ -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]:foo99@example.com',
description: 'A simple nested filter param',
description: 'A simple composite type filter param',
},
complex: {
value:

View File

@ -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]:foo99@example.com',
description: 'A simple nested filter param',
description: 'A simple composite type filter param',
},
complex: {
value: