Skip to content

Commit

Permalink
chore(routes/docs): use correct terminology for openapi definitions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Feb 28, 2023
1 parent f2d35e4 commit 08e302a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ API documentation can be found at `/docs`:

<img alttext="Screenshot of Docsmith documentation page" src="https://raw.githubusercontent.com/Fdawgs/docsmith/main/docs/images/api_documentation_screenshot.png" width="720">

The underlying OpenAPI definitions are found at `/docs/openapi`.

## Contributing

Contributions are welcome, and any help is greatly appreciated!
Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="Reference documentation and OpenAPI specification for Docsmith." />
<meta name="description" content="Reference documentation and OpenAPI definitions for Docsmith." />
<meta name="author" content="Frazer Smith" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

Expand Down
2 changes: 1 addition & 1 deletion src/routes/docs/openapi/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("OpenAPI route", () => {
await server.close();
});

test("Should return OpenAPI specification", async () => {
test("Should return OpenAPI definitions", async () => {
const response = await server.inject({
method: "GET",
url: "/",
Expand Down
4 changes: 2 additions & 2 deletions src/routes/docs/openapi/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const S = require("fluent-json-schema");
*/
const docsOpenapiGetSchema = {
hide: true,
summary: "List OpenAPI specification",
description: "Retrieves OpenAPI specification.",
summary: "List OpenAPI definitions",
description: "Retrieves OpenAPI definitions.",
operationId: "getDocsOpenapi",
produces: ["application/json", "application/xml"],
response: {
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async function plugin(server, config) {
// Reusable schemas
.register(sharedSchemas)

// Generate OpenAPI/Swagger schemas
// Generate OpenAPI/Swagger definitions
.register(swagger, config.swagger)

// Process load and 503 response handling
Expand Down

0 comments on commit 08e302a

Please sign in to comment.