@jxsuite/schema 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  "upgrade": "bunx npm-check-updates -u && bun install"
30
30
  },
31
31
  "type": "module",
32
- "version": "0.10.0"
32
+ "version": "0.10.2"
33
33
  }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://jxsuite.com/schema/project/v1",
4
4
  "title": "Jx Project",
5
- "description": "Schema for Jx project.json files. A project.json file is the root anchor file for a Jx project, declaring site metadata, default settings, global styles, content collections, and build configuration.",
5
+ "description": "Schema for Jx project.json files. A project.json file is the root anchor file for a Jx project, declaring site metadata, default settings, global styles, content types, and build configuration.",
6
6
  "type": "object",
7
7
  "properties": {
8
8
  "name": {
@@ -160,8 +160,8 @@
160
160
  "description": "Site-wide reactive state available to all pages.",
161
161
  "type": "object"
162
162
  },
163
- "collections": {
164
- "description": "Content collection definitions. Each key is a collection name; the value defines the source glob, frontmatter schema, and element dependencies.",
163
+ "contentTypes": {
164
+ "description": "Content type definitions. Each key is a content type name; the value defines the source glob, frontmatter schema, and element dependencies.",
165
165
  "type": "object",
166
166
  "additionalProperties": {
167
167
  "type": "object",
@@ -175,11 +175,11 @@
175
175
  ]
176
176
  },
177
177
  "schema": {
178
- "description": "JSON Schema for validating frontmatter of collection entries.",
178
+ "description": "JSON Schema for validating frontmatter of content type entries.",
179
179
  "type": "object"
180
180
  },
181
181
  "$elements": {
182
- "description": "Custom elements available in markdown directives for this collection.",
182
+ "description": "Custom elements available in markdown directives for this content type.",
183
183
  "type": "array",
184
184
  "items": {
185
185
  "oneOf": [
package/src/schema.js CHANGED
@@ -1022,7 +1022,7 @@ export function generateProjectSchema() {
1022
1022
  description:
1023
1023
  "Schema for Jx project.json files. " +
1024
1024
  "A project.json file is the root anchor file for a Jx project, " +
1025
- "declaring site metadata, default settings, global styles, content collections, " +
1025
+ "declaring site metadata, default settings, global styles, content types, " +
1026
1026
  "and build configuration.",
1027
1027
  type: "object",
1028
1028
 
@@ -1141,9 +1141,9 @@ export function generateProjectSchema() {
1141
1141
  description: "Site-wide reactive state available to all pages.",
1142
1142
  type: "object",
1143
1143
  },
1144
- collections: {
1144
+ contentTypes: {
1145
1145
  description:
1146
- "Content collection definitions. Each key is a collection name; " +
1146
+ "Content type definitions. Each key is a content type name; " +
1147
1147
  "the value defines the source glob, frontmatter schema, and element dependencies.",
1148
1148
  type: "object",
1149
1149
  additionalProperties: {
@@ -1155,11 +1155,12 @@ export function generateProjectSchema() {
1155
1155
  examples: ["./blog/**/*.md", "./docs/**/*.md"],
1156
1156
  },
1157
1157
  schema: {
1158
- description: "JSON Schema for validating frontmatter of collection entries.",
1158
+ description: "JSON Schema for validating frontmatter of content type entries.",
1159
1159
  type: "object",
1160
1160
  },
1161
1161
  $elements: {
1162
- description: "Custom elements available in markdown directives for this collection.",
1162
+ description:
1163
+ "Custom elements available in markdown directives for this content type.",
1163
1164
  type: "array",
1164
1165
  items: {
1165
1166
  oneOf: [