Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openethicsai/schable
A JavaScript tool to visualize JSON Schema as HTML Table
https://github.com/openethicsai/schable
javascript-library json json-schema json-schema-visualization json-schemas schema-design
Last synced: 13 days ago
JSON representation
A JavaScript tool to visualize JSON Schema as HTML Table
- Host: GitHub
- URL: https://github.com/openethicsai/schable
- Owner: OpenEthicsAI
- License: mit
- Created: 2024-10-27T11:52:55.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-08T13:18:35.000Z (14 days ago)
- Last Synced: 2024-12-08T14:23:00.995Z (14 days ago)
- Topics: javascript-library, json, json-schema, json-schema-visualization, json-schemas, schema-design
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Schable
Schable: Schema into TableA JavaScript tool to visualize JSON Schema as HTML Table.
To test, install `node.js` if not yet installed, navigate to the repo folder and launch `server.js`.
1. Add JS and CSS in the header
```html
```
2. Call schable(), specifying the div class. Set `proxy = true` when using on `localhost`.
```html
const jsonSchemaUrl = "https://openethics.ai/schema/oedp/oedp.passport.schema.json";
schable(jsonSchemaUrl, ".oedp", captions = true, proxy = false, max_depth = 12);
```