Skip to content

Commit

Permalink
BHBC-1731: Fix open api spec (#762)
Browse files Browse the repository at this point in the history
Fix open api specs for survey-view, survey funding sources update, and project-view
  • Loading branch information
anissa-agahchen authored May 2, 2022
1 parent 179e373 commit d0ccdbf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
22 changes: 1 addition & 21 deletions api/src/paths/project/{projectId}/survey/{surveyId}/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,27 +176,7 @@ GET.apiDoc = {
type: 'array',
items: {
title: 'survey funding agency',
type: 'object',
required: ['agency_name', 'funding_amount', 'funding_start_date', 'funding_end_date'],
properties: {
pfs_id: {
type: 'number'
},
agency_name: {
type: 'string'
},
funding_amount: {
type: 'number'
},
funding_start_date: {
type: 'string',
description: 'ISO 8601 date string'
},
funding_end_date: {
type: 'string',
description: 'ISO 8601 date string'
}
}
type: 'number'
}
},
geometry: {
Expand Down
6 changes: 4 additions & 2 deletions api/src/paths/project/{projectId}/survey/{surveyId}/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,12 @@ GET.apiDoc = {
nullable: true
},
intended_outcome_id: {
type: 'number'
type: 'number',
nullable: true
},
ecological_season_id: {
type: 'number'
type: 'number',
nullable: true
},
vantage_code_ids: {
type: 'array',
Expand Down
3 changes: 2 additions & 1 deletion api/src/paths/project/{projectId}/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ GET.apiDoc = {
description: 'ISO 8601 date string for the funding end_date'
},
agency_project_id: {
type: 'string'
type: 'string',
nullable: true
},
revision_count: {
type: 'number'
Expand Down
3 changes: 2 additions & 1 deletion api/src/paths/public/project/{projectId}/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ GET.apiDoc = {
description: 'ISO 8601 date string for the funding end date'
},
agency_project_id: {
type: 'string'
type: 'string',
nullable: true
},
revision_count: {
type: 'number'
Expand Down

0 comments on commit d0ccdbf

Please sign in to comment.