Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions openapi/components/tinynode-shared-components.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,8 @@ components:
minimum: 0
additionalProperties: true
ErrorResponse:
type: object
description: Generic error envelope used across operations.
properties:
message:
type: string
error:
type: string
status:
type: integer
minimum: 100
maximum: 599
additionalProperties: true
description: >-
TinyNode emits plain-text error bodies (Content-Type: text/plain). The
response body is the error message string; the HTTP status code carries
the category. Consumers should not expect a structured JSON envelope.
type: string
6 changes: 4 additions & 2 deletions test/routes/mount.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ describe("Check to see that critical repo files are present", () => {
assert.equal(fs.existsSync(`${filePath}README.md`), true)
assert.equal(fs.existsSync(`${filePath}.gitignore`), true)
assert.equal(fs.existsSync(`${filePath}package.json`), true)
assert.equal(fs.existsSync(`${filePath}.github/workflows/shared_openapi_sync.yaml`), true)
assert.equal(fs.existsSync(`${filePath}openapi/components/tinynode-shared-components.openapi.yaml`), true)
assert.equal(fs.existsSync(`${filePath}.github/workflows/shared_openapi_sync.yaml`), true,
"shared_openapi_sync.yaml workflow is missing — the receiver repo will stop receiving updates")
assert.equal(fs.existsSync(`${filePath}openapi/components/tinynode-shared-components.openapi.yaml`), true,
"canonical shared OpenAPI artifact is missing — sync workflow has nothing to publish")
})
})
Loading