Datasets:

Modalities:
Text
Formats:
json
Languages:
English
Libraries:
Datasets
pandas
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
repository
stringclasses
528 values
commit
stringlengths
40
40
commitDate
timestamp[s]
path
stringlengths
11
149
repoStars
int64
5
94.9k
repoLastFetched
stringclasses
528 values
content
stringlengths
48
736k
license
stringclasses
14 values
language
stringclasses
7 values
fiberplane/fiberplane
5e019eb927b42450aec154a5f713f953adefa35c
2023-05-03T15:06:05
schemas/webhooks.schema.json
83
2024-05-27T07:39:25.331263Z
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "default": {}, "properties": { "id": { "format": "base64uuid", "title": "Unique ID of this event. This is shared by every delivery across all webhooks", "type": "string" }, "payload": { "title": "Event specific payloa...
Apache-2.0
en
FriendsOfShopware/FroshTools
7913a809a2d03e9e28961dd4a78d530207fe1611
2023-06-20T19:17:46
frosh-tools-schema.json
58
2024-05-28T06:10:57.437918Z
{ "$ref": "#/definitions/root", "$schema": "https://json-schema.org/draft/2020-12/schema", "definitions": { "frosh_tools": { "additionalProperties": false, "properties": { "file_checker": { "items": { "type": "string" }, "title": "File checker allo...
MIT
en
hortonworks/registry
74262bc94fa9cc31d4e9f45ac5fded87374de072
2021-09-21T08:01:41
schema-registry/schema-registry-serdes/src/test/resources/SchemaVersionKey.json
12
2024-05-27T22:29:51.290408Z
{ "$schema": "https://json-schema.org/draft-07/schema", "properties": { "schemaName": { "description": "Name of the schema", "type": "string" }, "version": { "description": "Version of the schema", "type": "integer" } }, "required": [ "schemaName" ], "title": "Sch...
Apache-2.0
de
csaf-tools/CVRF-CSAF-Converter
56f998e7de034147578ed13bec696499188b8df1
2022-02-25T11:09:02
cvrf2csaf/schemata/csaf/2.0/csaf_json_schema.json
10
2024-05-27T05:24:48.756908Z
{ "$defs": { "acknowledgments_t": { "description": "Contains a list of acknowledgment elements.", "items": { "description": "Acknowledges contributions by describing those that contributed.", "minProperties": 1, "properties": { "names": { "description": "C...
MIT
en
csaf-tools/CVRF-CSAF-Converter
4d0420cd433d8787726850c3603576f6c34a3a6f
2023-01-27T09:32:43
cvrf2csaf/schemata/csaf/2.0/csaf_json_schema.json
10
2024-05-27T05:24:48.756908Z
{ "$defs": { "acknowledgments_t": { "description": "Contains a list of acknowledgment elements.", "items": { "description": "Acknowledges contributions by describing those that contributed.", "minProperties": 1, "properties": { "names": { "description": "C...
MIT
en
ebshimizu/5e-monster-maker
cda7dce8623b130eb2a30c3fbe4bf9ce12a25f38
2022-08-21T05:20:36
src/data/schema/5emm-v5.json
31
2024-05-28T05:26:35.869566Z
{ "$schema": "https://json-schema.org/draft/2019-09/schema", "properties": { "AC": { "type": "integer" }, "ACType": { "type": "string" }, "CR": { "type": "integer" }, "HP": { "properties": { "HD": { "type": "integer" }, "modifier"...
MIT
en
ebshimizu/5e-monster-maker
c83ad166fe21f95dd312d9b5dc2ce2510e6f0093
2023-03-19T19:35:31
src/data/schema/5emm-v7.json
31
2024-05-28T05:26:35.869566Z
{ "$schema": "https://json-schema.org/draft/2019-09/schema", "properties": { "AC": { "type": "integer" }, "ACType": { "type": "string" }, "CR": { "type": "integer" }, "HP": { "properties": { "HD": { "type": "integer" }, "modifier"...
MIT
en
ebshimizu/5e-monster-maker
616ac202571562b3f61f3cdbe6548fc26d3940be
2022-09-17T23:35:47
src/data/schema/5emm-v6.json
31
2024-05-28T05:26:35.869566Z
{ "$schema": "https://json-schema.org/draft/2019-09/schema", "properties": { "AC": { "type": "integer" }, "ACType": { "type": "string" }, "CR": { "type": "integer" }, "HP": { "properties": { "HD": { "type": "integer" }, "modifier"...
MIT
en
ebshimizu/5e-monster-maker
33f2303a0eb227f6c08b39ce2fcc8441e2823505
2021-01-02T20:31:44
src/data/schema/5emm-v2.json
31
2024-05-28T05:26:35.869566Z
"{\n \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\n \"properties\": {\n \"AC\(...TRUNCATED)
MIT
en
ebshimizu/5e-monster-maker
8b028ba282963ea3d2473d67baa36f002b600406
2020-07-08T03:17:45
src/data/schema/spells-v1.json
31
2024-05-28T05:26:35.869566Z
"{\n \"$schema\": \"https://json-schema.org/draft/2019-09/schema\",\n \"items\": {\n \"properti(...TRUNCATED)
MIT
en
End of preview. Expand in Data Studio

JSON Schema Dataset

This dataset consists of a collection of JSON Schema documents collected from GitHub by searching using the Sourcegraph API.

Step 1: Find a list of JSON Schema paths

The Sourcegraph code search API is used to find files with a .json extension and containing {\n "$schema": "https://json-schema.org/". This is somewhat restrictive, but still manages to find a large number of schemas.

pipenv run python slurp.py --outfile repos.csv

Step 2: Fetch the history information for each file

We fetch every revision of each JSON Schema file. Before downloading the files, we use the GitHub API to get the list of commit hashes. The resulting data is saved to commits.json.

pipenv run python fetch_history.py > commits.json

Step 3: Download the JSON Schema files

This script will download each schema which comes from GitHub and save it into subfolders in the data directory.

./fetch_files.sh

Step 4: Validate each JSON Schema

The following script will read each schema in the data directory and confirm that it is a valid JSON Schema. A copy of all valid schemas will be placed in the valid_data directory. Note that schemas are parsed as JSON5 to be more permissive on what syntax is allowed but the final schemas are written as standard JSON.

pipenv run python validate_schemas.py

Step 5: Retrieve additional metadata

We also collect language information using Fasttext and fetch the associated license from the GitHub API.

pipenv run python get_languages.py > languages.json
pipenv run python get_licenses.py > licenses.json

Step 6: Split into train, test, and validation

Finally data is split into training, test, and validation sets. Schemas are always grouped together in the same set based on the GitHub organization they are from. Schemas can also be checked for similarity so that very similar schemas are grouped together.

pipenv run python train_split.py
Downloads last month
52