Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ async function taskBuildWebsite() {
'The open-source catalog of JSON schemas for editors and tools, with support for JSON, YAML, and TOML files.'
const body = `<section id="intro" class="hero">
<p class="eyebrow">Open source JSON Schema catalog</p>
<h2>Reliable configuration help,<br /><span>right in your editor.</span></h2>
<h2>Reliable configuration help, <br /><span>right in your editor.</span></h2>
<p class="lede">
SchemaStore is the central catalog for JSON, YAML, and TOML schemas.
Editors and tools use it for validation, completion, and in-context documentation.
Expand All @@ -993,8 +993,8 @@ async function taskBuildWebsite() {
<a class="button secondary" href="https://github.com/SchemaStore/schemastore">Contribute on GitHub</a>
</div>
<dl class="stats">
<div><dt>${SchemasToBeTested.length.toLocaleString('en-US')}+</dt><dd>schemas</dd></div>
<div><dt>1+ TB</dt><dd>served daily</dd></div>
<div><dt id="schema-count">…</dt><dd>schemas</dd></div>
<div><dt>2 TB</dt><dd>served daily</dd></div>
<div><dt>Open source</dt><dd>maintained by contributors</dd></div>
</dl>
<div class="shots" aria-label="SchemaStore features">
Expand Down Expand Up @@ -1190,7 +1190,7 @@ async function taskBuildWebsite() {
<header role="banner">
<div class="container">
<div class="header-inner">
<h1><a href="/" itemprop="name"><img src="/img/json-schema-logo-blue.svg" width="28" height="28" alt="" />${siteName}</a></h1>
<h1><a href="/" itemprop="name"><img src="/img/json-logo.png" width="28" height="28" alt="" />${siteName}</a></h1>
<nav aria-label="Main navigation">
<a href="#schemalist">Catalog</a>
<a href="#api">API</a>
Expand Down
10 changes: 8 additions & 2 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"$schema": "https://www.schemastore.org/schema-catalog.json",
"version": 1,
"schemas": [
{
"name": "Context Passport",
"description": "Tamper-evident record of an AI agent event: what the agent was asked, what it decided, and a SHA-256 chain linking it to the record before it",
"fileMatch": ["*.passport.json"],
"url": "https://contextpassport.com/schema/v2.json"
},
{
"name": "glslint config",
"description": "glslint project config and shader-dialect preset (glslint.toml): ecosystem detection, #pragma expansion, shared-library and injected-define declarations",
Expand Down Expand Up @@ -8030,8 +8036,8 @@
"v2.6.3": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v2.6.3.json",
"v2.6.4": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v2.6.4.json",
"v2.6.5": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v2.6.5.json",
"v3.0.0-beta.14": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v.3.0.0-beta.14.json",
"v3.0.0-beta.15": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v.3.0.0-beta.15.json",
"v3.0.0-beta.14": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v3.0.0-beta.14.json",
"v3.0.0-beta.15": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v3.0.0-beta.15.json",
"v3.0.0-beta.16": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v3.0.0-beta.16.json",
"v3.0.0-beta.17": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v3.0.0-beta.17.json",
"v3.0.0-beta.18": "https://raw.githubusercontent.com/vega/schema/refs/heads/master/vega/v3.0.0-beta.18.json",
Expand Down
19 changes: 0 additions & 19 deletions src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,6 @@ header nav a.sponsor {
pointer-events: none;
}

.hero::after {
position: absolute;
z-index: -1;
top: 12%;
right: 1%;
width: 190px;
height: 190px;
border: 34px solid var(--accent-soft);
border-radius: 50%;
content: '';
opacity: 0.8;
}

.eyebrow {
margin-bottom: 0.8rem;
color: var(--accent);
Expand Down Expand Up @@ -587,12 +574,6 @@ footer a {
padding-top: 4rem;
}

.hero::after {
width: 110px;
height: 110px;
border-width: 22px;
}

.stats,
.shots,
.feature-grid,
Expand Down
4 changes: 4 additions & 0 deletions src/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

let ul = document.querySelector('#schemalist ul')
let p = document.getElementById('count')
let schemaCount = document.getElementById('schema-count')
let schemas = document.getElementById('schemas')
let search = document.getElementById('search')
let data = []
Expand All @@ -25,6 +26,9 @@

get(api, true, function (catalog) {
p.innerHTML = p.innerHTML.replace('{0}', catalog.schemas.length)
if (schemaCount) {
schemaCount.textContent = `${catalog.schemas.length.toLocaleString('en-US')}+`
}
data = catalog.schemas.sort(function (a, b) {
return a.name.localeCompare(b.name)
})
Expand Down
41 changes: 37 additions & 4 deletions src/schemas/json/tox.json
Original file line number Diff line number Diff line change
Expand Up @@ -774,23 +774,56 @@
},
"stop": {
"type": "integer"
},
"default": {
"type": "string"
}
},
"additionalProperties": false,
"description": "range factor group: expands to prefix+N for N in [start, stop]"
},
"factor_values_dict": {
"type": "object",
"required": ["values"],
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
}
},
"default": {
"type": "string"
}
},
"additionalProperties": false,
"description": "factor group with an explicit list and a default used when none of it is active"
},
"factor_labeled_dict": {
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"not": {
"properties": {
"prefix": {}
},
"required": ["prefix"]
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "#/definitions/factor_range_dict"
},
{
"$ref": "#/definitions/factor_values_dict"
}
]
},
"description": "labeled factor group for {factor:label} substitution"
},
Expand Down