Public
Like
JsonSchemaViewer
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v3View latest version
A simple web application that renders JSON Schema files using the @stoplight/json-schema-viewer package.
Visit the application with a URL parameter pointing to a JSON Schema file:
https://this-val-url/?url=<url-to-some-json-schema.json>
For example:
https://this-val-url/?url=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.1/schema.json
- Fetches and displays JSON Schema from any URL
- Renders the schema using the Stoplight JSON Schema Viewer component
- Supports all JSON Schema features including nested objects, arrays, and references
- Provides a form to easily load different schema URLs
- Handles errors gracefully
- Built with React 18.2.0
- Uses the
@stoplight/json-schema-viewerpackage for schema rendering - Styled with Twind (Tailwind CSS in JS)
- Runs on Val Town
/index.ts- Main HTTP handler that processes requests and serves the application/frontend/index.html- HTML template with embedded React application
To modify this project:
- Update the HTML template in
/frontend/index.htmlto change the UI - Modify
/index.tsto change the server-side behavior