typebox icon indicating copy to clipboard operation
typebox copied to clipboard

JsonTypeBuilder#Record not passing on options

Open gregerolsson opened this issue 2 years ago • 1 comments

Options object passed to JsonTypeBuilder#Record is not passed on to free Record function

This prevents [Kind]: "Record" types from having $id, title, and so on.

I can make a PR if you prefer, but since its just a 1-liner fix perhaps it can be sorted while you're doing other changes.

Oh, and thanks for a fantastic library ❤️

gregerolsson avatar Jan 20 '24 23:01 gregerolsson

@gregerolsson Hi,

Thanks for reporting! Have published a fix on 0.32.12 and written option assignment tests to try and catch missed option passing in future (during refactors, forgetting to pass in the options when refactoring has been a common oversight, they're easy to forget!)

All the best! S

sinclairzx81 avatar Jan 21 '24 06:01 sinclairzx81