Skip to content

Commit

Permalink
Mention that nested fields are supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Aug 5, 2024
1 parent b046905 commit eb4d1db
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ The service requires the following configuration parameters:

- **`description`** *(string, required)*: A brief description of the resource type.

- **`facetable_fields`** *(array)*: A list of the facetable fields for the resource type (leave empty to not use faceting). Default: `[]`.
- **`facetable_fields`** *(array)*: A list of the facetable fields for the resource type (leave empty to not use faceting, use dotted notation for nested fields). Default: `[]`.

- **Items**: Refer to *[#/$defs/FieldLabel](#%24defs/FieldLabel)*.

- **`selected_fields`** *(array)*: A list of the returned fields for the resource type (leave empty to return all). Default: `[]`.
- **`selected_fields`** *(array)*: A list of the returned fields for the resource type (leave empty to return all, use dotted notation for nested fields). Default: `[]`.

- **Items**: Refer to *[#/$defs/FieldLabel](#%24defs/FieldLabel)*.

Expand Down
4 changes: 2 additions & 2 deletions config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"facetable_fields": {
"default": [],
"description": "A list of the facetable fields for the resource type (leave empty to not use faceting)",
"description": "A list of the facetable fields for the resource type (leave empty to not use faceting, use dotted notation for nested fields)",
"items": {
"$ref": "#/$defs/FieldLabel"
},
Expand All @@ -40,7 +40,7 @@
},
"selected_fields": {
"default": [],
"description": "A list of the returned fields for the resource type (leave empty to return all)",
"description": "A list of the returned fields for the resource type (leave empty to return all, use dotted notation for nested fields)",
"items": {
"$ref": "#/$defs/FieldLabel"
},
Expand Down
4 changes: 2 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ components:
facetable_fields:
default: []
description: A list of the facetable fields for the resource type (leave
empty to not use faceting)
empty to not use faceting, use dotted notation for nested fields)
items:
$ref: '#/components/schemas/FieldLabel'
title: Facetable Fields
type: array
selected_fields:
default: []
description: A list of the returned fields for the resource type (leave
empty to return all)
empty to return all, use dotted notation for nested fields)
items:
$ref: '#/components/schemas/FieldLabel'
title: Selected Fields
Expand Down
4 changes: 2 additions & 2 deletions src/mass/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ class SearchableClass(BaseModel):
facetable_fields: list[FieldLabel] = Field(
[],
description="A list of the facetable fields for the resource type"
" (leave empty to not use faceting)",
" (leave empty to not use faceting, use dotted notation for nested fields)",
)
selected_fields: list[FieldLabel] = Field(
[],
description="A list of the returned fields for the resource type"
" (leave empty to return all)",
" (leave empty to return all, use dotted notation for nested fields)",
)


Expand Down

0 comments on commit eb4d1db

Please sign in to comment.