Skip to content

Remove warning about depricated schema on startup #5823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 31, 2025

Conversation

hardillb
Copy link
Contributor

Description

Seen in the Staging startup logs:

(node:1) [FSTDEP021] DeprecationWarning: You are using the deprecated json shorthand schema on route /api/v1/user/tokens/:id. Specify full object schema instead. It will be removed in `fastify@v5`
(Use `node --trace-deprecation ...` to show where the warning was created)

this should remove the warning

Context

fastify/fastify#4833

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production

Labels

  • Includes a DB migration? -> add the area:migration label

```
(node:1) [FSTDEP021] DeprecationWarning: You are using the deprecated json shorthand schema on route /api/v1/user/tokens/:id. Specify full object schema instead. It will be removed in `fastify@v5`
(Use `node --trace-deprecation ...` to show where the warning was created)
```

this should remove the Warning
@hardillb hardillb requested a review from knolleary July 28, 2025 12:28
@hardillb hardillb self-assigned this Jul 28, 2025
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.49%. Comparing base (8a69d29) to head (bdcc606).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5823   +/-   ##
=======================================
  Coverage   76.49%   76.49%           
=======================================
  Files         369      369           
  Lines       17969    17969           
  Branches     4189     4189           
=======================================
  Hits        13745    13745           
  Misses       4224     4224           
Flag Coverage Δ
backend 76.49% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@knolleary knolleary merged commit b36f434 into main Jul 31, 2025
16 checks passed
@knolleary knolleary deleted the remove-deprication-warning branch July 31, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants