Back to Type Challenges

README

questions/26401-medium-json-schema-to-typescript/README.md

latest1.3 KB
Original Source
<!--info-header-start--><h1>JSON Schema to TypeScript </h1><blockquote><p>by null <a href="https://github.com/aswinsvijay" target="_blank">@aswinsvijay</a></p></blockquote><p><a href="https://tsch.js.org/26401/play" target="_blank"></a> </p><!--info-header-end-->

Implement the generic type JSONSchema2TS which will return the TypeScript type corresponding to the given JSON schema.

Additional challenges to handle:

  • additionalProperties
  • oneOf, anyOf, allOf
  • minLength and maxLength
<!--info-footer-start-->

<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/26401/answer" target="_blank"></a> <a href="https://tsch.js.org/26401/solutions" target="_blank"></a> <!--info-footer-end-->