(instance, opts, done)
| 586 | const fastify = Fastify() |
| 587 | |
| 588 | const decorator = function (instance, opts, done) { |
| 589 | instance.decorate('decoratorAddSchema', function (whereAddTheSchema) { |
| 590 | instance.addSchema({ |
| 591 | $id: 'schema', |
| 592 | type: 'string' |
| 593 | }) |
| 594 | }) |
| 595 | done() |
| 596 | } |
| 597 | |
| 598 | fastify.register(fp(decorator)) |
| 599 |