Skip to content

Commit 2c08cd4

Browse files
committed
Fix frontend and OpenAPI CI checks
1 parent d1d895b commit 2c08cd4

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

docs/api/v1/openapi.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ paths:
225225
'401':
226226
content:
227227
application/feed+json:
228-
example:
229-
title: Error
230-
version: https://jsonfeed.org/version/1.1
228+
example: '{"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
231229
schema:
232230
type: string
233231
application/xml:
@@ -240,9 +238,7 @@ paths:
240238
'403':
241239
content:
242240
application/feed+json:
243-
example:
244-
title: Error
245-
version: https://jsonfeed.org/version/1.1
241+
example: '{"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
246242
schema:
247243
type: string
248244
application/xml:
@@ -256,9 +252,7 @@ paths:
256252
'500':
257253
content:
258254
application/feed+json:
259-
example:
260-
title: Error
261-
version: https://jsonfeed.org/version/1.1
255+
example: '{"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
262256
schema:
263257
type: string
264258
application/xml:

frontend/src/__tests__/ResultDisplay.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('ResultDisplay', () => {
4444
expect(screen.getByText(/points by canpan/i)).toBeInTheDocument();
4545
expect(screen.getByText('Item Two')).toBeInTheDocument();
4646
});
47-
expect(window.fetch).toHaveBeenCalledWith('https://example.com/feed.json', {
47+
expect(window.fetch).toHaveBeenCalledWith('https://example.com/feed.xml', {
4848
headers: { Accept: 'application/feed+json' },
4949
});
5050
});

spec/support/openapi.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@
109109
XML
110110
},
111111
'application/feed+json' => {
112-
'example' => {
113-
'version' => 'https://jsonfeed.org/version/1.1',
114-
'title' => 'Error'
115-
}
112+
'example' => '{"version":"https://jsonfeed.org/version/1.1","title":"Error"}'
116113
}
117114
}
118115

0 commit comments

Comments
 (0)