Fix idSchema issue with dependencies#1005
Fix idSchema issue with dependencies#1005glasserc merged 1 commit intorjsf-team:masterfrom jaminthorns:fix/id-schema
Conversation
|
Thanks for opening the PR. The changes seem straightforward to me, but I get the sense that there's a larger problem. It seems like all calls to |
|
Looking through the code base, you're mostly right about the usage of The key thing to note is that Now, at the time You're correct about the test working if I had done As far as user-facing bugs, this change was motived by one that I encountered while using the top-level |
|
Thanks for the explanation! |
Reasons for making this change
This fixes an issue where an
idSchemawould not be generated for property fields of objects that are in a dependency. It also adds a test to validate the fix.This PR actually fixes the same issue as a part of its changes (here), but it looks like it's been sitting idle for the past month, and I'd like to get this fix in. My PR touches much less code, so I figure it should be easy to get this through.
The change in
UnsupportedField.jsis just because I ran thecs-formatscript. I suppose it was missed before, and I figured I'd commit it.Checklist
npm run cs-formaton my branch to conform my code to prettier coding style