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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fastify application hook onReady|Add the fastify onReady application hook|ffonre
fastify application hook onClose|Add the fastify onClose application hook|ffonclose, hookonclose
fastify application hook onRoute|Add the fastify onRoute application hook|ffonroute, hookonroute
fastify application hook onRegister|Add the fastify onRegister application hook|ffonregister, hookonregister
fastify add schema|Add a shared JSON schema to fastify|ffaddschema, ffsharedschema, ffjsonschema, ffschema
<!-- ##TOC-BUILDER-END## -->

## Contribute
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-snippets",
"version": "1.0.0",
"version": "1.0.1",
"icon": "images/logo-256.png",
"displayName": "Fastify Snippets",
"description": "Make your Fastify developing even faster",
Expand Down
13 changes: 13 additions & 0 deletions snippets/snippets-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,5 +260,18 @@
"})"
],
"description": "Add the fastify onRegister application hook"
},
"fastify add schema": {
"scope": "javascript,typescript",
"prefix": [
"ffaddschema",
"ffsharedschema",
"ffjsonschema",
"ffschema"
],
"body": [
"fastify.addSchema($0)"
],
"description": "Add a shared JSON schema to fastify"
}
}