Skip to content

Conversation

@sinclairzx81
Copy link
Contributor

@sinclairzx81 sinclairzx81 commented Nov 17, 2020

This PR updates the anyOf code generation pass to omit Symbol properties for the AJV validation schema. This is done via JSON.stringify() which will automatically omit Symbols (and other non-JSON applicable types). This replaces the previous approach that used NodeJS's util.inspect().

Fixes #271.

Checklist

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

Good work!

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.

Schema with anyOf loses track of Symbols defined by the caller.

2 participants