a11y.skipToMainContent
1

JSON zu JSON Schema

Fügen Sie ein JSON-Sample ein und erhalten Sie ein JSON-Schema, das seine Form beschreibt - nützlich für die API-Dokumentation, die Validierung von Anfragen / Antworten und Vertragstests.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use JSON to JSON Schema

  1. Einfügen eines JSON-Objekts.
  2. Wählen Sie einen Entwurf Version.
  3. Toggle Beispiele / All-fields-required.
  4. Kopieren Sie das Schema - verwenden Sie es mit Ajv, JSON Schema Validatoren oder als OpenAPI-Komponenten.

Was ist JSON in JSON Schema?

JSON Schema ist die Standardmethode, um JSON zu beschreiben und zu validieren. Dieses Tool führt Ihre Stichprobe durch und leitet für jede Ebene type, properties und required ab. Zeichenfolgen, die wie E-Mails, URLs oder ISO-Daten aussehen, erhalten automatisch den Hinweis format. Wählen Sie Draft 2020-12, 2019-09 oder Draft-07 für Ihre $schema URL.

Advertisement

FAQ

Welche Entwürfe werden unterstützt?
2020-12 (standard), 2019-09 und draft-07.
Werden Formate erkannt?
Ja - E-Mail, uri, Datum und Datumszeit werden von regex erkannt.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

← Back to Developer Tools · All tags

Last updated:

Advertisement