a11y.skipToMainContent
1

JSON à JSON Schema

Coller n'importe quel échantillon JSON et obtenir un schéma JSON décrivant sa forme — utile pour la documentation API, la validation de la demande/réponse et les tests de contrat.

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

How to use JSON to JSON Schema

  1. Coller un objet JSON.
  2. Choisissez une version provisoire.
  3. Basculer des exemples / tous les champs-requis.
  4. Copiez le schéma — utilisez-le avec Ajv, JSON Schema validators, ou en tant que composants OpenAPI.

Quel est {nom} ?

JSON Schema est la méthode standard pour décrire et valider JSON. Cet outil guide votre échantillon et indique type, propriétés et obligatoire pour chaque niveau. Les chaînes qui ressemblent à des courriels, des URL ou des dates ISO obtiennent automatiquement l'indice correspondant format. Choisissez 2020-12, 2019-09, ou brouillon-07 pour votre URL $schema.

Advertisement

FAQ

Quels projets sont soutenus?
2020-12 (par défaut), 2019-09, et brouillon-07.
Les formats sont-ils détectés?
Oui — e-mail, uri, date et date-heure sont détectés par regex.

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