You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
4.24.3
Plugin version
4.0.0
Node.js version
v20.11.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
Windows 10 Version 1809
Description
Type.Record from the @sinclair/typebox library does not generate a correct model. Model does not match expected structure. Instead it generates a unrelated Generic Model.
The above property patternProperties is unsupported by Swagger UI which means it should not show any field in the output.
Somewhere in your schema is adding { "additionalProperties": { "type": "string" }.
Prerequisites
Fastify version
4.24.3
Plugin version
4.0.0
Node.js version
v20.11.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
Windows 10 Version 1809
Description
Type.Record from the @sinclair/typebox library does not generate a correct model. Model does not match expected structure. Instead it generates a unrelated Generic Model.
Steps to Reproduce
Output
Expected Behavior
"String": number
Example:
"test": 123
The text was updated successfully, but these errors were encountered: