Skip to content
Afa' Afa'

Project

Vue JsonSchema Generator

Convert Vue component props to JSON Schema

36 commits 1 contributor Updated Mar 2026

Overview

A production-ready library to extract JSON Schema from Vue 3 component props. Supports Composition API (``), Options API, and TypeScript.

Features

  • Deep Parsing: Extracts types, default values, enums, and required status.
  • Deterministic IDs: Adds a stable id to each schema node (root, properties, nested objects, array items).
  • Tuple Arrays: Emits prefixItems for TypeScript tuple props (JSON Schema tuple validation).
  • Literal Inference: Emits const for resolved TypeScript literal values (including generic literal substitutions).
  • TypeScript Support: Handles complex TypeScript types, including imported types.
  • JSDoc Support: Maps JSDoc comments (description, @default, @example) to JSON Schema fields.
  • Custom Keywords: Support for @pattern, @min, @max, @minLength, @maxLength, etc.
  • Vite Plugin: Generate JSON Schemas on the fly using a custom query (?schema).

Technology

  • jsonschema
  • TypeScript
  • vuejs

Repository information

Primary language
TypeScript
Created
February 13, 2026
Last activity
March 5, 2026

Activity

Daily commits on the default branch, across the whole project history.

Daily commit activity over the project's whole history. Each cell is one day; darker cells mean more commits.
Mon Wed Fri

Contributors

Search articles and projects

Type to filter articles and projects. Use the arrow keys to move through results and Enter to open one. Press Escape to close.