JSON zu JSON Schema (Draft-07) Generator & Validator
Offline-fähigLeiten Sie präzise JSON-Schema-Spezifikationen (Draft-07, 2020-12) aus JSON-Daten ab. Inklusive Validierung im Browser, automatischer Formaterkennung und TypeScript-Export.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "User Profile Record",
"$id": "https://api.toolsaa.com/schemas/user-profile.json",
"description": "Draft-07 validated schema specification inferred from user payload",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"description": "Unique machine-readable identifier for this resource."
},
"username": {
"type": "string",
"description": "Unique account handle or username."
},
"email": {
"type": "string",
"format": "email",
"description": "Verified contact electronic mail address."
},
"isActive": {
"type": "boolean",
"description": "Boolean toggle indicating if entity is presently active."
},
"age": {
"type": "integer",
"description": "The age associated with this record."
},
"creditBalance": {
"type": "number",
"description": "The credit balance associated with this record."
},
"website": {
"type": "string",
"format": "uri",
"description": "Public web homepage or portal destination link."
},
"createdAt": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp representing initial creation date."
},
"lastLoginIp": {
"type": "string",
"format": "ipv4",
"description": "The last login ip associated with this record."
},
"roles": {
"type": "array",
"description": "The roles associated with this record.",
"items": {
"type": "string",
"description": "The roles item associated with this record."
}
},
"address": {
"type": "object",
"description": "Physical geographical location or mailing destination.",
"properties": {
"street": {
"type": "string",
"description": "The street associated with this record."
},
"city": {
"type": "string",
"description": "The city associated with this record."
},
"postalCode": {
"type": "string",
"description": "The postal code associated with this record."
},
"country": {
"type": "string",
"description": "The country associated with this record."
},
"isPrimary": {
"type": "boolean",
"description": "The is primary associated with this record."
}
},
"required": [
"street",
"city",
"postalCode",
"country",
"isPrimary"
],
"additionalProperties": false
},
"metadata": {
"type": "object",
"description": "The metadata associated with this record.",
"properties": {
"department": {
"type": "string",
"description": "The department associated with this record."
},
"clearanceLevel": {
"type": "integer",
"description": "The clearance level associated with this record."
},
"onboardingCompleted": {
"type": "boolean",
"description": "The onboarding completed associated with this record."
}
},
"required": [
"department",
"clearanceLevel",
"onboardingCompleted"
],
"additionalProperties": false
}
},
"required": [
"id",
"username",
"email",
"isActive",
"age",
"creditBalance",
"website",
"createdAt",
"lastLoginIp",
"roles",
"address",
"metadata"
],
"additionalProperties": false
}Null Draft-07-Schemaverstöße gefunden
Ändern Sie Daten links oder erzeugen Sie Testfehler oben für sofortiges Feedback.
export interface UserProfileRecord {
/** Unique machine-readable identifier for this resource. */
id: string;
/** Unique account handle or username. */
username: string;
/** Verified contact electronic mail address. */
email: string;
/** Boolean toggle indicating if entity is presently active. */
isActive: boolean;
/** The age associated with this record. */
age: number;
/** The credit balance associated with this record. */
creditBalance: number;
/** Public web homepage or portal destination link. */
website: string;
/** ISO 8601 timestamp representing initial creation date. */
createdAt: string;
/** The last login ip associated with this record. */
lastLoginIp: string;
/** The roles associated with this record. */
roles: string[];
/** Physical geographical location or mailing destination. */
address: Address;
/** The metadata associated with this record. */
metadata: Metadata;
}
export interface Address {
/** The street associated with this record. */
street: string;
/** The city associated with this record. */
city: string;
/** The postal code associated with this record. */
postalCode: string;
/** The country associated with this record. */
country: string;
/** The is primary associated with this record. */
isPrimary: boolean;
}
export interface Metadata {
/** The department associated with this record. */
department: string;
/** The clearance level associated with this record. */
clearanceLevel: number;
/** The onboarding completed associated with this record. */
onboardingCompleted: boolean;
}Zero-Knowledge Lokale Ausführung
Alle Datenverarbeitungen, Konvertierungen und Berechnungen erfolgen ausschließlich im Webbrowser ohne Serverübertragungen.
Sub-Millisekunden Reaktive Engine
Hochoptimierte Ausführungspipeline liefert sofortige Ergebnisse bei Tastendruck ohne Verzögerungen.
Produktionsreife Standardtreue
Prüft Syntax, Randfälle und Formatierungsregeln konsequent für verlässliche Produktivergebnisse.
JSON zu JSON Schema (Draft-07) Generator & Validator Cheatsheet
Umfassende Referenz und Inferenz-Engine für JSON Schema Draft-07, 2020-12 Spezifikationen mit automatischer Formaterkennung und TypeScript-Export.
Wichtige Parameter & Einstellungen
| Parameter | Typ / Einheit | Beschreibung | Standard |
|---|---|---|---|
| dialect | string | Ziel-Spezifikation (draft-07, draft-04, 2020-12). | draft-07 |
| requiredPolicy | string | Richtlinie für Pflichtfelder (all, none, common). | all |
| detectFormats | boolean | Automatische Erkennung von Datums-, E-Mail- und UUID-Formaten. | true |
| strictAdditionalProperties | boolean | Setzt additionalProperties auf false. | false |
Profi-Tipps & Best Practices
Draft-07 bietet die höchste Kompatibilität mit Node.js Ajv, Python und OpenAPI 3.0.
Nutzen Sie den TypeScript-Tab, um passende Interface-Definitionen direkt in Ihr Projekt zu übernehmen.
Testen Sie Randfälle interaktiv im Validator-Tab gegen das neu generierte Schema.
Häufige Fehlerquellen & Fehlerbehebung
⚠️Gemischte Array-Typen
Unterschiedliche Elementstrukturen führen zu Union-Typen. Vereinheitlichen Sie die Beispieldaten.
⚠️Format wird nicht erkannt
Prüfen Sie, ob Datumsangaben dem Standard ISO 8601 entsprechen.
Häufig gestellte Fragen (FAQ)
Welche Versionen werden unterstützt?▼
Draft-07, Draft-04, Draft-06 und Draft 2020-12.
Ist das Schema direkt mit Ajv kompatibel?▼
Ja, ohne jegliche Anpassungen direkt in Ajv kompilierbar.
Werden Daten an Server gesendet?▼
Nein, alle Berechnungen laufen 100% lokal im Browser ab.
Welche Formate werden erkannt?▼
date-time, email, uri, uuid, ipv4, ipv6 und integer.
Verwandte Tools & Hilfsprogramme
Alle Tools →Konvertieren Sie TypeScript Interfaces, Types und JSDoc-Kommentare in standardkonforme JSON Schema Definitionen für APIs und Formulare.
JSON online formatieren, validieren und reparieren. Syntaxfehler bereinigen, Keys ohne Anführungszeichen korrigieren, minifizieren und AST-Knoten ohne Server-Upload prüfen.
Erstellen Sie XML-Schema-Definitionen (XSD) mit Typstrukturen, komplexen Elementen, Attributen und minOccurs/maxOccurs aus JSON.
JSON-Objekte analysieren und in Google Cloud BigQuery Tabellenschema-JSON mit RECORD-Modus, STRING, INTEGER, NUMERIC und TIMESTAMP konvertieren.
Konvertieren Sie GraphQL-Schema-Definitionen (SDL) in JSON Schema (Draft 2020-12 / Draft-07) und OpenAPI 3.0 / 3.1 Schemas mit strikter Nullability und Typauflösung.
Konvertieren Sie JSON-Objekte direkt im Browser in saubere, typsichere TypeScript-Interfaces oder Typ-Aliase mit automatischer Objektschachtelung.