Formateadores y código
Herramientas de Esquema Apache Avro
Validate, format and explore .avsc schemas.
Validation · 0 errors
- ✓ Top-level type: record
- ✓ Record name: User
- ✓ 5 field(s) declared.
{
"type": "record",
"name": "User",
"namespace": "com.anytimeconvert",
"fields": [
{
"name": "id",
"type": "long"
},
{
"name": "email",
"type": "string"
},
{
"name": "name",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "active",
"type": "boolean",
"default": true
},
{
"name": "tags",
"type": {
"type": "array",
"items": "string"
},
"default": []
}
]
}Nota del editor
Understanding · Schema with the data — the Kafka format.
Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.
Preguntas frecuentes
Quick answers.
›What is an .avsc file?
An `.avsc` file is a JSON document that defines the schema for Avro data, including the record name, namespace, and fields with their respective types.
›Is my schema sent to a server for validation?
No. The validation and formatting logic runs entirely in your browser using JavaScript, so your schema remains local to your machine.
›Does this tool support complex Avro types?
Yes. It validates primitive types as well as complex types including records, enums, arrays, maps, unions, and fixed types.
›Why is my schema failing validation?
Common issues include missing required fields like `name` or `type`, syntax errors in the JSON structure, or using reserved keywords incorrectly.
La gente también busca
Herramientas relacionadas
More in this room.
- Conversor de JSON a XMLConvierte JSON a XML limpio y bien formado.
- Conversor de CSV a JSONConvierte hojas de cálculo en arrays JSON — al instante.
- Conversor de YAML a JSONConvierte YAML a JSON — instantáneo, solo en navegador.
- Convertidor de JSON a ExcelConvierte matrices JSON en hojas de cálculo de Excel.
- Convertidor TOML ⇄ JSONConvierte entre TOML y JSON — en ambas direcciones.
- Convertidor INI ⇄ JSONConvierte archivos de configuración INI a JSON y viceversa.