Manuel Spigolon

Results 381 comments of Manuel Spigolon

Hi @pieroxy, is there something we can do to help you?

> In tests, the purpose of using the getSchema method is to create a reference to an already added schema, not to add a new one. I totally agree with...

Mmmm you are right but I don't like it: we should check how many recursive chek we are running to minimise these operations because I'm losing the count personally 😅...

This is already doable within a plugin that listens for the `onRoute` hook and add the `constraints` property when necessary. ``` fastify.register(function plugin (instance, opts, next) { instance.addHook('onRoute', function hook...

> is this still slightly a hack? Not at all: it is the infinite possibilities fastify offers > EDIT: To clarify, does the register for the route also need to...

To replicate your issue we need your schemas or a minimal reproducible code that we can run. We do not have the whole schema here: ``` body: S.oneOf([S.ref('UserLoginRequest'), S.ref('RefreshTokenRequest')]), response:...

> Previously in 3.x it worked correctly and returned the schema that matched. It was a bug, actually 😄 the old v2 (included in fastify v3) returns all the properties...

> How do we change the logger of a fastify instance after it is created? Users must set the pino instance by themself: eg: ``` fastify({ logger: require('pino-one-liner') }) ```

I was working on it here: https://github.com/fastify/releasify/issues/42 I'm waiting to send a PR to [npm-otp-publish](https://github.com/mmarchini-oss/npm-otp-publish/) to support OTP. If we agree on skip this step, [this raw action](https://github.com/Eomm/node-workshop-micro/blob/master/.github/workflows/release.yml) triggered manually...

The issue is that we can't receive the URL where input the OTP: the idea was to receive a message on discord, input the OTP and continue the flow Details...