devpocket.dev

JSON Schema से Types

JSON Schema से TypeScript types, Zod schemas या Pydantic v2 models बनाएँ।

लोकल चलता है
टूल लोड हो रहा है…

इस्तेमाल कैसे करें

JSON Schema पेस्ट करें, output target चुनें और root type name दें। Converter objects, arrays, enums, constants, nullable values, anyOf/oneOf, simple object allOf merges, local $ref values जो $defs या definitions में हों और common string formats संभालता है।

Descriptions JSDoc comments, Zod .describe() metadata या Pydantic Field descriptions बनते हैं। Generated code शुरुआत के लिए है; production में इस्तेमाल करने से पहले custom keywords, constraints और naming review करें।

आम सवाल

कौन-सा JSON Schema draft supported है?

Converter modern drafts में साझा common structural keywords स्वीकार करता है, जिनमें $defs और पुराना definitions container दोनों शामिल हैं।

क्या external $ref URLs resolve होते हैं?

नहीं। टूल को पूरी तरह local और deterministic रखने के लिए केवल #/$defs/ या #/definitions/ से शुरू local references accepted हैं।

क्या सभी validation constraints बने रहते हैं?

Structural types और listed formats रहते हैं। Numeric bounds, regex patterns, dependent व conditional schemas और custom keywords अभी output नहीं होते।

मिलते-जुलते टूल