Skip to content

Commit d269907

Browse files
committed
Added media content type schema
1 parent 38a1e6b commit d269907

12 files changed

+202
-36
lines changed

public/config/content.pagefolders.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/content.pagefolders.schema.json",
44
"description": "Defines the settings for Front Matter page folder",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
66
"type": "object",
77
"title": "Front Matter - page folder",
88
"properties": {

public/config/content.placeholders.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/content.placeholders.schema.json",
44
"description": "Defines the settings for Front Matter placeholder",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
66
"type": "object",
77
"title": "Front Matter - placeholder",
88
"properties": {

public/config/content.snippets.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/content.snippets.schema.json",
44
"description": "Defines the settings for Front Matter snippet",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.686Z",
66
"type": "object",
77
"title": "Front Matter - snippet",
88
"required": [
@@ -28,7 +28,7 @@
2828
"type": "string"
2929
},
3030
"fields": {
31-
"$ref": "https://beta.frontmatter.codes/config/taxonomy.contenttypes.schema.json#/properties/fields"
31+
"$ref": "https://beta.frontmatter.codes/config/media.contentTypes.schema.json#/properties/fields"
3232
},
3333
"openingTags": {
3434
"description": "The snippet opening tags.",

public/config/custom.scripts.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/custom.scripts.schema.json",
44
"description": "Defines the settings for Front Matter custom script",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
66
"type": "object",
77
"title": "Front Matter - custom script",
88
"properties": {

public/config/data.files.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/data.files.schema.json",
44
"description": "Defines the settings for Front Matter data file",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.686Z",
66
"type": "object",
77
"title": "Front Matter - data file",
88
"properties": {

public/config/data.folders.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/data.folders.schema.json",
44
"description": "Defines the settings for Front Matter data folder",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.686Z",
66
"type": "object",
77
"title": "Front Matter - data folder",
88
"properties": {

public/config/data.types.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/data.types.schema.json",
44
"description": "Defines the settings for Front Matter data type",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.686Z",
66
"type": "object",
77
"title": "Front Matter - data type",
88
"properties": {
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "https://beta.frontmatter.codes/config/media.contentTypes.schema.json",
4+
"description": "Defines the settings for Front Matter content type",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
6+
"type": "object",
7+
"title": "Front Matter - content type",
8+
"properties": {
9+
"name": {
10+
"type": "string",
11+
"description": "Name of the media content type"
12+
},
13+
"fileTypes": {
14+
"type": "array",
15+
"description": "Specify the file types to allow for the media content type",
16+
"items": {
17+
"type": "string"
18+
}
19+
},
20+
"fields": {
21+
"type": "array",
22+
"description": "Define the fields of the media content type",
23+
"properties": {
24+
"title": {
25+
"type": "string",
26+
"description": "Title to show in the UI"
27+
},
28+
"name": {
29+
"type": "string",
30+
"description": "Name of the field to use"
31+
},
32+
"type": {
33+
"type": "string",
34+
"description": "Define the type of field"
35+
},
36+
"single": {
37+
"type": "boolean",
38+
"description": "Is a single line field"
39+
}
40+
}
41+
}
42+
}
43+
}

public/config/taxonomy.contenttypes.schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/taxonomy.contenttypes.schema.json",
44
"description": "Defines the settings for Front Matter content type",
5-
"lastModified": "2024-02-12T08:58:26.061Z",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
66
"type": "object",
77
"title": "Front Matter - content type",
88
"properties": {
@@ -513,6 +513,14 @@
513513
"default": null,
514514
"description": "Defines a custom preview path for the content type."
515515
},
516+
"slugTemplate": {
517+
"type": [
518+
"null",
519+
"string"
520+
],
521+
"default": null,
522+
"description": "%setting.frontMatter.content.pageFolders.items.properties.slugTemplate.description%"
523+
},
516524
"template": {
517525
"type": "string",
518526
"default": "",

public/config/taxonomy.fieldgroups.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema",
33
"$id": "https://beta.frontmatter.codes/config/taxonomy.fieldgroups.schema.json",
44
"description": "Defines the settings for Front Matter field groups",
5-
"lastModified": "2024-02-12T08:58:26.062Z",
5+
"lastModified": "2024-02-13T08:42:31.685Z",
66
"type": "object",
77
"title": "Front Matter - field groups",
88
"properties": {

0 commit comments

Comments
 (0)