Creating a JSON schema for a source JSON with multiple types in the same array. #2334
Unanswered
tombo-meta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm looking to use Quicktype to generate a JSON schema and C# classes from a source JSON file. The caveat is that my source file has an array that contains a number of disparate element types. I tried following the customization sample here, as well as exploring the git repo, but I haven't found a way to accomplish what I need.
Is this something that is supported by general customization, or am I barking up the wrong tree?
Thanks!
Here's a few examples to help illustrate what I'm trying to accomplish:
Example Source:
Example Schema Output:
Example C# Output:
Beta Was this translation helpful? Give feedback.
All reactions