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
hey @esatterwhite thank you for reporting this. Would you like to contribute and add a test in the ObjectSchma.test.js file and add the functionality if it fails?
* fixes: object schema carry properties added by raw to $ref
fixes#216
* Apply suggestions from code review
* update to spread operator for consistency
Prerequisites
Fastify version
4.10.2
Plugin version
No response
Node.js version
16.14.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
5.10.167-1-MANJARO
Description
I think there is a problem with using ref + raw in the object schema in that the values added by the
raw()
function are removed or not includedSteps to Reproduce
correct
incorrect
I suspect it is from the object schemas handling of ref
fluent-json-schema/src/ObjectSchema.js
Lines 321 to 331 in ab242d2
Expected Behavior
I'd expect the properties defiend by
.raw()
to be carried unconditionally to the object they are definedThe text was updated successfully, but these errors were encountered: