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

Commit

Permalink
Fix naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
chouinar committed May 20, 2024
1 parent 4502cef commit 436cb56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions api/src/api/opportunities_v0_1/opportunity_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,27 +245,27 @@ class OpportunityV01Schema(Schema):

class OpportunitySearchFilterV01Schema(Schema):
funding_instrument = fields.Nested(
StrSearchSchemaBuilder("FundingInstrumentFilterSchema")
StrSearchSchemaBuilder("FundingInstrumentFilterV01Schema")
.with_one_of(allowed_values=FundingInstrument)
.build()
)
funding_category = fields.Nested(
StrSearchSchemaBuilder("FundingCategoryFilterSchema")
StrSearchSchemaBuilder("FundingCategoryFilterV01Schema")
.with_one_of(allowed_values=FundingCategory)
.build()
)
applicant_type = fields.Nested(
StrSearchSchemaBuilder("ApplicantTypeFilterSchema")
StrSearchSchemaBuilder("ApplicantTypeFilterV01Schema")
.with_one_of(allowed_values=ApplicantType)
.build()
)
opportunity_status = fields.Nested(
StrSearchSchemaBuilder("OpportunityStatusFilterSchema")
StrSearchSchemaBuilder("OpportunityStatusFilterV01Schema")
.with_one_of(allowed_values=OpportunityStatus)
.build()
)
agency = fields.Nested(
StrSearchSchemaBuilder("AgencyFilterSchema")
StrSearchSchemaBuilder("AgencyFilterV01Schema")
.with_one_of(example="US-ABC", minimum_length=2)
.build()
)
Expand Down
10 changes: 5 additions & 5 deletions api/src/api/opportunities_v1/opportunity_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,27 +245,27 @@ class OpportunityV1Schema(Schema):

class OpportunitySearchFilterV1Schema(Schema):
funding_instrument = fields.Nested(
StrSearchSchemaBuilder("FundingInstrumentFilterSchema")
StrSearchSchemaBuilder("FundingInstrumentFilterV1Schema")
.with_one_of(allowed_values=FundingInstrument)
.build()
)
funding_category = fields.Nested(
StrSearchSchemaBuilder("FundingCategoryFilterSchema")
StrSearchSchemaBuilder("FundingCategoryFilterV1Schema")
.with_one_of(allowed_values=FundingCategory)
.build()
)
applicant_type = fields.Nested(
StrSearchSchemaBuilder("ApplicantTypeFilterSchema")
StrSearchSchemaBuilder("ApplicantTypeFilterV1Schema")
.with_one_of(allowed_values=ApplicantType)
.build()
)
opportunity_status = fields.Nested(
StrSearchSchemaBuilder("OpportunityStatusFilterSchema")
StrSearchSchemaBuilder("OpportunityStatusFilterV1Schema")
.with_one_of(allowed_values=OpportunityStatus)
.build()
)
agency = fields.Nested(
StrSearchSchemaBuilder("AgencyFilterSchema")
StrSearchSchemaBuilder("AgencyFilterV1Schema")
.with_one_of(example="US-ABC", minimum_length=2)
.build()
)
Expand Down

0 comments on commit 436cb56

Please sign in to comment.