[{"data":1,"prerenderedAt":277},["ShallowReactive",2],{"docs-nav":3,"docs-page-\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab":133},[4,27,53,68,83,98,117],{"slug":5,"label":6,"pages":7},"get-started","Get Started",[8,12,17,22],{"path":9,"title":10,"order":11},"\u002Fdocs","Welcome",0,{"path":13,"title":14,"navTitle":15,"order":16},"\u002Fdocs\u002Fget-started\u002Fquickstart","Quickstart",null,1,{"path":18,"title":19,"navTitle":20,"order":21},"\u002Fdocs\u002Fget-started\u002Fconnect-to-a-cluster","Connecting to a Kafka Cluster","Clusters",2,{"path":23,"title":24,"navTitle":25,"order":26},"\u002Fdocs\u002Fget-started\u002Flicense","Licensing and Activation","License",3,{"slug":28,"label":29,"pages":30},"console","Console",[31,35,39,43,48],{"path":32,"title":33,"navTitle":34,"order":16},"\u002Fdocs\u002Fconsole\u002Foverview","Produce and Consume Messages in the Kafka Console","Overview",{"path":36,"title":37,"navTitle":38,"order":21},"\u002Fdocs\u002Fconsole\u002Fconsuming-messages","Kafka Consumer: Reading Messages from a Topic","Consuming",{"path":40,"title":41,"navTitle":42,"order":26},"\u002Fdocs\u002Fconsole\u002Fdecoding-messages","Decoding Kafka Avro and Protobuf Messages","Decoding",{"path":44,"title":45,"navTitle":46,"order":47},"\u002Fdocs\u002Fconsole\u002Fproducing-messages","Kafka Producer: Sending Messages to a Topic","Producing",4,{"path":49,"title":50,"navTitle":51,"order":52},"\u002Fdocs\u002Fconsole\u002Freplay-forward-and-export","Replay and Export Kafka Messages","Replay & export",5,{"slug":54,"label":55,"pages":56},"topics","Topics",[57,60,64],{"path":58,"title":59,"navTitle":34,"order":16},"\u002Fdocs\u002Ftopics\u002Foverview","Browse and Inspect Kafka Topics",{"path":61,"title":62,"navTitle":63,"order":21},"\u002Fdocs\u002Ftopics\u002Fcreate-a-topic","Create a Kafka Topic: Partitions, Replication, and Retention","Create a topic",{"path":65,"title":66,"navTitle":67,"order":26},"\u002Fdocs\u002Ftopics\u002Fpartitions-and-records","Adding Kafka Partitions and Deleting Records","Partitions & records",{"slug":69,"label":70,"pages":71},"schema-registry","Schema Registry",[72,75,79],{"path":73,"title":74,"navTitle":34,"order":16},"\u002Fdocs\u002Fschema-registry\u002Foverview","Browse Kafka Schema Registry Subjects and Versions",{"path":76,"title":77,"navTitle":78,"order":21},"\u002Fdocs\u002Fschema-registry\u002Fnew-versions","Register Kafka Schemas and Publish New Versions","New versions",{"path":80,"title":81,"navTitle":82,"order":26},"\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab","Avro Schema Validator and Mock Data Generator","Mock & Lab",{"slug":84,"label":85,"pages":86},"consumer-groups","Consumer Groups",[87,90,94],{"path":88,"title":89,"navTitle":34,"order":16},"\u002Fdocs\u002Fconsumer-groups\u002Foverview","Browse Kafka Consumer Groups and Assignments",{"path":91,"title":92,"navTitle":93,"order":21},"\u002Fdocs\u002Fconsumer-groups\u002Flag","Monitor Kafka Consumer Lag","Lag",{"path":95,"title":96,"navTitle":97,"order":26},"\u002Fdocs\u002Fconsumer-groups\u002Freset-offsets","Reset Kafka Consumer Group Offsets","Reset offsets",{"slug":99,"label":100,"pages":101},"data-clone","Data Clone",[102,105,109,113],{"path":103,"title":104,"navTitle":34,"order":16},"\u002Fdocs\u002Fdata-clone\u002Foverview","Clone Kafka Topics Between Clusters",{"path":106,"title":107,"navTitle":108,"order":21},"\u002Fdocs\u002Fdata-clone\u002Fscope-and-range","Configure Kafka Topic Cloning","Scope & range",{"path":110,"title":111,"navTitle":112,"order":26},"\u002Fdocs\u002Fdata-clone\u002Fmasking","Mask Sensitive Data in Kafka Messages","Masking",{"path":114,"title":115,"navTitle":116,"order":47},"\u002Fdocs\u002Fdata-clone\u002Fpre-flight","Run Pre-flight Checks Before a Kafka Data Clone","Pre-flight",{"slug":118,"label":119,"pages":120},"operate","Operate",[121,125,129],{"path":122,"title":123,"navTitle":124,"order":16},"\u002Fdocs\u002Foperate\u002Fbrokers","Inspect Kafka Brokers and Cluster Configuration","Brokers",{"path":126,"title":127,"navTitle":128,"order":21},"\u002Fdocs\u002Foperate\u002Faccess-control","Inspect Kafka ACLs and Simulate Access","Access Control",{"path":130,"title":131,"navTitle":132,"order":26},"\u002Fdocs\u002Foperate\u002Factivity-logs","Review Kafka Changes in Kafma Activity Logs","Activity Logs",{"id":134,"title":81,"body":135,"description":268,"extension":269,"lastUpdated":270,"meta":271,"navTitle":82,"navigation":272,"order":26,"path":80,"seo":273,"sitemap":274,"stem":275,"__hash__":276},"docs\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab.md",{"type":136,"value":137,"toc":261},"minimark",[138,151,156,162,165,176,185,197,201,211,214,217,225,229,235,238,242],[139,140,141,142,146,147,150],"p",{},"Use ",[143,144,145],"strong",{},"Mock"," to generate sample JSON from a registered schema version. Use\n",[143,148,149],{},"Lab"," to check whether a JSON payload matches that version.",[152,153,155],"h2",{"id":154},"generate-mock-data-from-a-schema","Generate mock data from a schema",[139,157,158,159,161],{},"Open a subject, select a version, and choose ",[143,160,145],{},". Kafma generates a sample\nbeside the schema.",[139,163,164],{},"Mock supports Avro, JSON Schema, and Protobuf, including registered schema\nreferences. If a Protobuf schema contains multiple top-level message types,\nselect the type you want to generate.",[139,166,167,168,171,172,175],{},"Click ",[143,169,170],{},"Remock"," to generate another sample from the same schema, or ",[143,173,174],{},"Copy"," to\nuse it as a starting point for a producer.",[139,177,178],{},[179,180],"img",{"alt":181,"height":182,"src":183,"width":184},"Protobuf schema beside a generated JSON sample with message type, Remock, and Copy controls",976,"https:\u002F\u002Fmedia.kafma.app\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab\u002Fschema-mock.png",1540,[139,186,187,188,192,193,196],{},"The ",[189,190,191],"a",{"href":44},"Kafka producer"," uses the same schema-based\ngeneration when you select ",[143,194,195],{},"Generate",". In Loop mode, it can create a fresh\nsample on every interval.",[152,198,200],{"id":199},"validate-json-against-an-avro-schema","Validate JSON against an Avro schema",[139,202,203,204,206,207,210],{},"Select ",[143,205,149],{},", enter a JSON payload, and click ",[143,208,209],{},"Validate",". Kafma validates it\nagainst the selected schema version and schema ID.",[139,212,213],{},"JSON syntax errors are marked in the editor before validation. If the payload\ndoes not match the schema, Lab reports the affected field path and the reason.\nA valid payload produces a success notification.",[139,215,216],{},"Although the input is JSON, Lab also validates payloads against registered JSON\nSchema and Protobuf schemas. For Protobuf with multiple top-level message\ntypes, select the type represented by the payload.",[139,218,219],{},[179,220],{"alt":221,"height":222,"src":223,"width":224},"Avro schema validator showing an invalid JSON payload with its field path and validation error",1108,"https:\u002F\u002Fmedia.kafma.app\u002Fdocs\u002Fschema-registry\u002Fmock-and-lab\u002Fschema-lab.png",1548,[152,226,228],{"id":227},"validate-against-another-schema-version","Validate against another schema version",[139,230,231,232,234],{},"Use the version selector beside the schema to choose another registered\nversion, then click ",[143,233,209],{}," again. This makes it easy to confirm why the\nsame payload passes one version and fails another.",[139,236,237],{},"Lab validates registered versions, not an unpublished draft. After a new\nversion is published, select it in Lab to test payloads against it.",[152,239,241],{"id":240},"next-steps","Next steps",[243,244,245,251,256],"ul",{},[246,247,248],"li",{},[189,249,250],{"href":76},"Register schemas and publish new versions",[246,252,253],{},[189,254,255],{"href":44},"Produce Avro and Protobuf Kafka messages",[246,257,258],{},[189,259,260],{"href":40},"Decode Avro and Protobuf messages",{"title":262,"searchDepth":26,"depth":26,"links":263},"",[264,265,266,267],{"id":154,"depth":21,"text":155},{"id":199,"depth":21,"text":200},{"id":227,"depth":21,"text":228},{"id":240,"depth":21,"text":241},"Use Kafma's Avro schema validator and mock data generator. Test JSON payloads or create samples from registered Avro, JSON Schema, and Protobuf schemas.","md","2026-08-01",{},true,{"title":81,"description":268},{"loc":80},"docs\u002Fschema-registry\u002Fmock-and-lab","o11rsSCtmr4MRxzv242LesKh7KM4K0QjtcmZBgzAqX4",1785561255860]