ตัวจัดรูปแบบและโค้ด
เครื่องมือ Apache Avro Schema
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": []
}
]
}หมายเหตุจากบรรณาธิการ
Understanding · Schema with the data — the Kafka format.
บทเชิงลึกนี้มีให้บริการเฉพาะภาษาอังกฤษในขณะนี้ เครื่องมือแปลงด้านบนทำงานในภาษาของคุณ บทความอธิบายแบบยาวยังไม่ได้แปล
คำถามที่พบบ่อย
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.
ผู้คนยังค้นหา
เครื่องมือที่เกี่ยวข้อง
More in this room.
- เครื่องมือแปลง JSON เป็น XMLแปลง JSON เป็น XML ที่สะอาดและจัดรูปแบบถูกต้อง
- CSV เป็น JSON Converterเปลี่ยนสเปรดชีตเป็นอาร์เรย์ JSON — ทันที
- ตัวแปลง YAML เป็น JSONแปลง YAML เป็น JSON — ทันที, เฉพาะในเบราว์เซอร์
- ตัวแปลง JSON เป็น Excelเปลี่ยนอาร์เรย์ JSON ให้เป็นสเปรดชีต Excel
- ตัวแปลง TOML ⇄ JSONแปลงระหว่าง TOML และ JSON — ทั้งสองทิศทาง
- ตัวแปลง INI ⇄ JSONแปลงไฟล์คอนฟิกูเรชัน INI เป็น JSON และกลับกัน