Skip to content

Commit

Permalink
Add list-export schema to schema loader
Browse files Browse the repository at this point in the history
  • Loading branch information
tryb3l committed Mar 17, 2024
1 parent d99c15d commit 3233ad1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions routes/notes/schemas/list-export.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$id": "schema:note:list:export",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
}
}
}
1 change: 1 addition & 0 deletions routes/notes/schemas/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const fp = require("fastify-plugin");
module.exports = fp(async function schemaLoaderPlugin(fastify, opts) {
fastify.addSchema(require("./list-query.json"));
fastify.addSchema(require("./list-response.json"));
fastify.addSchema(require("./list-export.json"));
fastify.addSchema(require("./create-body.json"));
fastify.addSchema(require("./create-response.json"));
fastify.addSchema(require("./status-params.json"));
Expand Down

0 comments on commit 3233ad1

Please sign in to comment.