Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
update examples to use proper class
Browse files Browse the repository at this point in the history
  • Loading branch information
Rwolfe-Nava committed Aug 5, 2024
1 parent c23a781 commit b59d617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/src/api/schemas/search_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def with_one_of(

class DateSearchSchemaBuilder(BaseSearchSchemaBuilder):
"""
Builder for setting up a filter for a date in the search endpoint schema.
Builder for setting up a filter for a range of dates in the search endpoint schema.
Example of what this might look like:
{
Expand All @@ -130,19 +130,19 @@ class DateSearchSchemaBuilder(BaseSearchSchemaBuilder):
# In a search request schema, you would use it like so:
example_start_date_field = fields.Nested(
StrSearchSchemaBuilder("ExampleStartDateFieldSchema")
DateSearchSchemaBuilder("ExampleStartDateFieldSchema")
.with_start_date()
.build()
)
example_end_date_field = fields.Nested(
StrSearchSchemaBuilder("ExampleEndDateFieldSchema")
DateSearchSchemaBuilder("ExampleEndDateFieldSchema")
.with_end_date()
.build()
)
example_startend_date_field = fields.Nested(
StrSearchSchemaBuilder("ExampleStartEndDateFieldSchema")
DateSearchSchemaBuilder("ExampleStartEndDateFieldSchema")
.with_start_date()
.with_end_date()
.build()
Expand Down

0 comments on commit b59d617

Please sign in to comment.