Projekte
Auf GitHub ansehen
stoplightio/json-schema-viewer
Über uns
A JSON Schema viewer React component
Web- und App-EntwicklungWhat you can do
- Full JSON Schema Draft 4 support, including oneOf and anyOf combiner properties
- Renders complicated nested objects to any depth
- Renders validation properties and markdown descriptions
- Capable of linking resolved $refs
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original@stoplight/json-schema-viewer
A JSON Schema viewer React component
Features
- Full JSON Schema Draft 4 support, including
oneOfandanyOfcombiner properties - Renders complicated nested objects to any depth
- Renders validation properties and markdown descriptions
- Capable of linking resolved $refs
- Theme-able
- Collapsible
Installation
Supported in modern browsers and node.
# latest stable
yarn add @stoplight/json-schema-viewer
Usage
// index.jsx
import { JsonSchemaViewer } from "@stoplight/json-schema-viewer";
<JsonSchemaViewer
name="Todos Model"
schema={schema}
expanded={true}
hideTopBar={false}
emptyText="No schema defined"
defaultExpandedDepth={0}
/>;
More examples can be find in the Storybook stories.
Contributing
- Clone repo.
- Create / checkout
feature/{name},chore/{name}, orfix/{name}branch. - Install deps:
yarn. - Make your changes.
- Run tests:
yarn test.prod. - Stage relevant files to git.
- Commit:
yarn commit. NOTE: Commits that don't follow the conventional format will be rejected.yarn commitcreates this format for you, or you can put it together manually and then do a regulargit commit. - Push:
git push. - Open PR targeting the
developbranch.
Ähnliche Projekte entdecken
Wird geladen…