diff --git a/openapi/components/tinynode-shared-components.openapi.yaml b/openapi/components/tinynode-shared-components.openapi.yaml index 4201735..1d50249 100644 --- a/openapi/components/tinynode-shared-components.openapi.yaml +++ b/openapi/components/tinynode-shared-components.openapi.yaml @@ -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 diff --git a/test/routes/mount.test.js b/test/routes/mount.test.js index cf78f94..c6939bf 100644 --- a/test/routes/mount.test.js +++ b/test/routes/mount.test.js @@ -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") }) })