GSoC 2025: CircuitVerse contributor adds JSON Schema and AJV validation in Week 14
A Google Summer of Code contributor working with CircuitVerse completed two major milestones during the week of August 24–30, after having two stacked pull requests merged over the weekend. The developer built a canonical JSON Schema for CircuitVerse project files, starting from auto-generated TypeScript types and refining them into a strict, reusable contract covering component IDs, port references, routing, and metadata. On top of that, a two-pass runtime validation layer was added using the AJV library — the first pass checks structural correctness against the schema, while the second performs cross-reference checks that schema validation alone cannot catch, such as verifying that net IDs and subcircuit references point to entities that actually exist. Validation errors now include precise JSON paths to help pinpoint issues, and the importer is designed to leave project data unmodified until both passes succeed. The work also ensures layout data remains optional, allowing the ELK Auto Layout feature to generate it on the fly when absent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in