Skip to content
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

Serialization issues after the recent fast-json-stringify update #4092

Closed
2 tasks done
a88zach opened this issue Jun 28, 2022 · 1 comment · Fixed by fastify/fast-json-stringify#482
Closed
2 tasks done

Comments

@a88zach
Copy link

a88zach commented Jun 28, 2022

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.2.0

Plugin version

No response

Node.js version

16.15.1

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

12.4

Description

After the release of version 4.2.0, we are seeing serialization issues with complex schemas created with Typebox.
I've included a reproducible example below.

This is likely the cause: #4049

Steps to Reproduce

clone https://github.com/a88zach/fastify-schema-issue

install modules and run the test

The test will fail with the following error

no schema with key or ref \"805a7e61-8dcb-423a-b9f7-24dd1496e728#/items/anyOf/0/properties/type/anyOf/0\"

Expected Behavior

Test should pass as the schema and response are both valid

@mcollina
Copy link
Member

@ivan-tymoshenko could you take a look?

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 a pull request may close this issue.

2 participants