Skip to content

Commit af639b1

Browse files
authored
Rename template catalog metadata (#23)
1 parent e2e7418 commit af639b1

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.github/workflows/deploy-schemas.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
cp packages/json-schemas/schemas/content.json build/json-schemas/content.json
3535
cp packages/json-schemas/schemas/content-schema.json build/json-schemas/content-schema.json
3636
cp packages/json-schemas/schemas/project.json build/json-schemas/project.json
37-
cp packages/json-schemas/schemas/template/catalog-metadata.json build/json-schemas/template/catalog-metadata.json
37+
cp packages/json-schemas/schemas/template-catalog-metadata.json build/json-schemas/template/template-catalog-metadata.json
3838
find build/json-schemas -type f -name "*.json" -exec sed -i -e 's|https://schema\.croct\.com/json/event/|https://schema.croct.com/json/v1/|g' {} +
3939
find build/json-schemas -type f -name "*.json" -exec sed -i -e 's|https://schema\.croct\.com/json/template/|https://schema.croct.com/json/v1/|g' {} +
4040
find build/json-schemas -type f -name "*.json" -exec sed -i -e '/https:\/\/schema\.croct\.com\/json\/v1\//! s|https://schema\.croct\.com/json/|https://schema.croct.com/json/v1/|g' {} +

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,14 @@ To use a JSON schema in your JSON configuration, include the `$schema` keyword r
3636

3737
Below is a list of available JSON schemas:
3838

39-
| Schema | URL |
40-
|----------------|----------------------------------------------------------------------------------------------------------------|
41-
| Project | [`https://schema.croct.com/json/v1/project.json`](https://schema.croct.com/json/v1/project.json) |
42-
| Content | [`https://schema.croct.com/json/v1/content.json`](https://schema.croct.com/json/v1/content.json) |
43-
| Content schema | [`https://schema.croct.com/json/v1/content-schema.json`](https://schema.croct.com/json/v1/content-schema.json) |
44-
| Template | [`https://schema.croct.com/json/v1/template.json`](https://schema.croct.com/json/v1/template.json) |
45-
| Web event | [`https://schema.croct.com/json/v1/web-event.json`](https://schema.croct.com/json/v1/web-event.json) |
39+
| Schema | URL |
40+
|---------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
41+
| Project | [`https://schema.croct.com/json/v1/project.json`](https://schema.croct.com/json/v1/project.json) |
42+
| Content | [`https://schema.croct.com/json/v1/content.json`](https://schema.croct.com/json/v1/content.json) |
43+
| Content schema | [`https://schema.croct.com/json/v1/content-schema.json`](https://schema.croct.com/json/v1/content-schema.json) |
44+
| Template | [`https://schema.croct.com/json/v1/template.json`](https://schema.croct.com/json/v1/template.json) |
45+
| Template catalog metadata | [`https://schema.croct.com/json/v1/template-catalog-metadata.json`](https://schema.croct.com/json/v1/template-catalog-metadata.json) |
46+
| Web event | [`https://schema.croct.com/json/v1/web-event.json`](https://schema.croct.com/json/v1/web-event.json) |
4647

4748
## Documentation
4849

packages/json-schemas/schemas/template/catalog-metadata.json renamed to packages/json-schemas/schemas/template/template-catalog-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$id": "https://schema.croct.com/json/template/catalog-metadata.json",
2+
"$id": "https://schema.croct.com/json/template/template-catalog-metadata.json",
33
"$schema": "https://json-schema.org/draft/2019-09/schema",
44
"title": "Template metadata",
55
"description": "Metadata of templates listed in the catalog.",

packages/json-schemas/test/schemas/fixtures/template/invalid/catalog-metadata-empty.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"schema": "template/catalog-metadata.json",
2+
"schema": "template/template-catalog-metadata.json",
33
"allErrors": true,
44
"input": {
55

packages/json-schemas/test/schemas/fixtures/template/invalid/catalog-metadata-invalid-property-values.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"schema": "template/catalog-metadata.json",
2+
"schema": "template/template-catalog-metadata.json",
33
"allErrors": true,
44
"input": {
55
"id": "",

packages/json-schemas/test/schemas/fixtures/template/valid/catalog-metadata-complete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"schema": "template/catalog-metadata.json",
2+
"schema": "template/template-catalog-metadata.json",
33
"input": {
44
"id": "shadcn-croct",
55
"verified": true,

0 commit comments

Comments
 (0)