type-get-json-schema

Generate a JSON Schema from a C# type name using reflection.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill type-get-json-schema-igot-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: type-get-json-schema
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/game-engineer/develop-unity-ui/references/type-get-json-schema
Command: npx skills add https://github.com/igot-ai/os-twin --skill type-get-json-schema-igot-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate a JSON Schema for a given C# type name using reflection, enabling quick validation of data contracts across assemblies.

Core Features & Use Cases

  • Generates a JSON Schema from a full type name (e.g., UnityEngine.Vector3) loaded in an active runtime or project.
  • Supports primitives, enums, arrays, generic collections, dictionaries, and complex objects.
  • Use case: validate serialization formats and API contracts in Unity and .NET projects.

Quick Start

Provide the full C# type name to generate its JSON Schema.

Frequently Asked Questions about type-get-json-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a JSON Schema from a C# type name using reflection?

To generate a JSON Schema from a C# type name, provide the full assembly-qualified name like 'UnityEngine.Vector3'. The tool uses reflection to inspect loaded assemblies and returns a valid JSON Schema representing the data contract.

Can I create JSON Schemas for Unity types like UnityEngine.Vector3?

Yes, you can create JSON Schemas for Unity types like UnityEngine.Vector3. The tool inspects types loaded in the active runtime, supporting Unity-specific structures alongside standard .NET primitives and complex objects.

Does C# JSON Schema generation support dictionaries and generic collections?

C# JSON Schema generation supports dictionaries, generic collections, arrays, enums, primitives, and complex objects. It reflects over these structures in loaded assemblies to map their properties into a valid JSON Schema format.

What is the best way to validate serialization formats for C# types in loaded assemblies?

The best way to validate serialization formats is to generate a JSON Schema from the full C# type name. This uses reflection to map the loaded assembly's data structures, enabling quick validation of API contracts and serialization formats.

Why do I need a full type name to generate a JSON Schema in C#?

You need a full type name to generate a JSON Schema because the tool uses reflection to locate the exact class within loaded assemblies. Providing the complete name, such as 'UnityEngine.Vector3', ensures accurate mapping of the targeted structure.

How do I validate API contracts using JSON Schema in a .NET project?

To validate API contracts in a .NET project, generate a JSON Schema from your C# type names. This produces a valid schema definition representing your data structures, allowing you to verify that serialized data matches the expected contract.