Skip to content

Question: How to add schema generator for recursive type? #15

Description

@blakeSaucier

Hello,

I have a recursive DU as part of my model:

type Node =
  | Leaf of int
  | Node of Node * Node 

Currently the Schema Generator gets caught in an endless loop when asked to generate a Json Schema.

I would offer a PR however I'm not sure how to add this feature.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions