Skip to content

Commit

Permalink
fix(gn4-api): adjust content-type for records api to XML
Browse files Browse the repository at this point in the history
Also regenerates API client

This fixes an error when trying to save a record with GN 4.2.5+
  • Loading branch information
jahow committed Jul 22, 2024
1 parent 5cc3714 commit bc11b9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
6 changes: 1 addition & 5 deletions libs/data-access/gn4/src/openapi/api/records.api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7201,11 +7201,7 @@ export class RecordsApiService {
}

// to determine the Content-Type header
const consumes: string[] = [
'application/xml',
'application/json',
'application/x-www-form-urlencoded',
]
const consumes: string[] = ['application/xml']
const httpContentTypeSelected: string | undefined =
this.configuration.selectHeaderContentType(consumes)
if (httpContentTypeSelected !== undefined) {
Expand Down
8 changes: 0 additions & 8 deletions libs/data-access/gn4/src/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1832,14 +1832,6 @@ paths:
schema:
type: string
description: XML fragment.
application/json:
schema:
type: string
description: XML fragment.
application/x-www-form-urlencoded:
schema:
type: string
description: XML fragment.
responses:
default:
description: default response
Expand Down

0 comments on commit bc11b9e

Please sign in to comment.