mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +00:00
Safekeeper: fix OpenAPI spec (#9066)
## Problem
Safekeeper's OpenAPI spec is incorrect:
```
Semantic error at paths./v1/tenant/{tenant_id}/timeline/{timeline_id}.get.responses.404.content.application/json.schema.$ref
$refs must reference a valid location in the document
Jump to line 126
```
Checked on https://editor.swagger.io
## Summary of changes
- Add `NotFoundError`
- Add `description` and `license` fields to make Cloud OpenAPI spec
linter happy
This commit is contained in:
committed by
GitHub
parent
f2c08195f0
commit
3104f0f250
@@ -1,7 +1,11 @@
|
|||||||
openapi: "3.0.2"
|
openapi: "3.0.2"
|
||||||
info:
|
info:
|
||||||
title: Safekeeper control API
|
title: Safekeeper control API
|
||||||
|
description: Neon Safekeeper API
|
||||||
version: "1.0"
|
version: "1.0"
|
||||||
|
license:
|
||||||
|
name: "Apache"
|
||||||
|
url: https://github.com/neondatabase/neon/blob/main/LICENSE
|
||||||
|
|
||||||
|
|
||||||
servers:
|
servers:
|
||||||
@@ -386,6 +390,12 @@ components:
|
|||||||
msg:
|
msg:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
NotFoundError:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
msg:
|
||||||
|
type: string
|
||||||
|
|
||||||
responses:
|
responses:
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user