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

recursion.json test not available #20

Closed
ayushbindlish opened this issue Jan 3, 2022 · 6 comments
Closed

recursion.json test not available #20

ayushbindlish opened this issue Jan 3, 2022 · 6 comments

Comments

@ayushbindlish
Copy link

Hi @ghandic

I see a recursion.json in src/tests/data, but I do not see a test for it. Is it supported by jsf? Also, is $ref:"#" supported?

Thanks.

@ghandic
Copy link
Owner

ghandic commented Jan 3, 2022

It isn't supported yet, there's an issue open for it I believe - recursion.

I don't believe # is supported yet either

@ayushbindlish
Copy link
Author

Can we expect to get that functionality soon?

@ghandic
Copy link
Owner

ghandic commented Jan 3, 2022

I'm open to discussing how we could build it, I think when I last was working on this I figured I'd have to do a redesign to implement it... again PR is welcome 😁

@ayushbindlish
Copy link
Author

I myself did not look at the code for that functionality. Would you kindly divulge the implementation details for this functionality and I will try to implement it.
Also, which draft is supported here? is it draft 4 or 7, or some other?

@ghandic
Copy link
Owner

ghandic commented Jan 16, 2022

I was working towards draft 2020-12, there are a lot of features to the overall specification so there will always be more to do! I was also primarily trying to tackle the most common cases and less of the edge cases up front. If theres something in particular you were looking for that you believe isnt supported then I'm happy to discuss it on here. Also feel free to add failing tests for any JSON schema that isnt supported currently so that the functionality can be built! 😄

In terms of recursion, I spent a few hours while initially building the package to try to implement it. There were some circular dependencies that I kept hitting, it is definitely possible to accomplish but will need to add thought into it on this discussion. Particularly, when we generate how deep to go with the recursive random data generation.

@ghandic
Copy link
Owner

ghandic commented Jan 16, 2022

I'll close this thread and move it to the enhancement issue created previously #13

@ghandic ghandic closed this as completed Jan 16, 2022
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

No branches or pull requests

2 participants