Skip to content

Commit

Permalink
fixed description bug for successful responses (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbellj authored Nov 4, 2019
1 parent fa42db6 commit d67b5be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions bcda/models/SwaggerStructs.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ type MetadataResponse struct {
Body fhirmodels.CapabilityStatement `json:"body,omitempty"`
}

// File of newline-delimited JSON FHIR ExplanationOfBenefit objects
// swagger:response ExplanationOfBenefitNDJSON
type ExplanationOfBenefitNDJSON struct {
// File of newline-delimited JSON FHIR objects
// swagger:response FileNDJSON
type FileNDJSON struct {
// in: body
// minimum items: 1
Body *[]fhirmodels.ExplanationOfBenefit
Body string `json:"ndjson"`
}

// A JobStatus parameter model.
Expand Down
2 changes: 1 addition & 1 deletion bcda/web/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func jobStatus(w http.ResponseWriter, r *http.Request) {
bearer_token:
Responses:
200: ExplanationOfBenefitNDJSON
200: FileNDJSON
400: badRequestResponse
401: invalidCredentials
404: notFoundResponse
Expand Down

0 comments on commit d67b5be

Please sign in to comment.