Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Generator: Detect Recursion / Mutual Recursion #15

Open
amilner42 opened this issue Nov 17, 2016 · 0 comments
Open

Generator: Detect Recursion / Mutual Recursion #15

amilner42 opened this issue Nov 17, 2016 · 0 comments

Comments

@amilner42
Copy link
Owner

It would be nice if the generator could detect this:

interface x {
    propertyName: x
}

And turn it into the appropriate schema:

const xSchema = {
    name: "xSchema",
    objectProperties: {
        propertyName: { referenceName: "xSchema" },
        undefinedAllowed: true
    }
}

The same applies to mutual recursion detection, but in that case the generator will have to use withContext as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant