@twin.org/standards-schema-org 0.0.1-next.42 → 0.0.1-next.44
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/dist/cjs/index.cjs +10 -0
- package/dist/esm/index.mjs +10 -0
- package/docs/changelog.md +14 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -194,6 +194,7 @@ class SchemaOrgDataTypes {
|
|
|
194
194
|
*/
|
|
195
195
|
static registerTypes() {
|
|
196
196
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Text}`, () => ({
|
|
197
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
197
198
|
type: SchemaOrgTypes.Text,
|
|
198
199
|
defaultValue: "",
|
|
199
200
|
jsonSchema: async () => ({
|
|
@@ -202,6 +203,7 @@ class SchemaOrgDataTypes {
|
|
|
202
203
|
validate: async (propertyName, value, failures, container) => core.Validation.string(propertyName, value, failures)
|
|
203
204
|
}));
|
|
204
205
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Integer}`, () => ({
|
|
206
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
205
207
|
type: SchemaOrgTypes.Integer,
|
|
206
208
|
defaultValue: 0,
|
|
207
209
|
jsonSchema: async () => ({
|
|
@@ -210,6 +212,7 @@ class SchemaOrgDataTypes {
|
|
|
210
212
|
validate: async (propertyName, value, failures, container) => core.Validation.integer(propertyName, value, failures)
|
|
211
213
|
}));
|
|
212
214
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Float}`, () => ({
|
|
215
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
213
216
|
type: SchemaOrgTypes.Float,
|
|
214
217
|
defaultValue: 0,
|
|
215
218
|
jsonSchema: async () => ({
|
|
@@ -218,6 +221,7 @@ class SchemaOrgDataTypes {
|
|
|
218
221
|
validate: async (propertyName, value, failures, container) => core.Validation.number(propertyName, value, failures)
|
|
219
222
|
}));
|
|
220
223
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Boolean}`, () => ({
|
|
224
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
221
225
|
type: SchemaOrgTypes.Boolean,
|
|
222
226
|
defaultValue: true,
|
|
223
227
|
jsonSchema: async () => ({
|
|
@@ -226,6 +230,7 @@ class SchemaOrgDataTypes {
|
|
|
226
230
|
validate: async (propertyName, value, failures, container) => core.Validation.boolean(propertyName, value, failures)
|
|
227
231
|
}));
|
|
228
232
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.URL}`, () => ({
|
|
233
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
229
234
|
type: SchemaOrgTypes.URL,
|
|
230
235
|
defaultValue: "",
|
|
231
236
|
jsonSchema: async () => ({
|
|
@@ -235,6 +240,7 @@ class SchemaOrgDataTypes {
|
|
|
235
240
|
validate: async (propertyName, value, failures, container) => core.Url.validate(propertyName, value, failures)
|
|
236
241
|
}));
|
|
237
242
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Date}`, () => ({
|
|
243
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
238
244
|
type: SchemaOrgTypes.Date,
|
|
239
245
|
defaultValue: new Date(),
|
|
240
246
|
jsonSchema: async () => ({
|
|
@@ -244,6 +250,7 @@ class SchemaOrgDataTypes {
|
|
|
244
250
|
validate: async (propertyName, value, failures, container) => core.Validation.dateString(propertyName, value, failures)
|
|
245
251
|
}));
|
|
246
252
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.DateTime}`, () => ({
|
|
253
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
247
254
|
type: SchemaOrgTypes.DateTime,
|
|
248
255
|
defaultValue: new Date(),
|
|
249
256
|
jsonSchema: async () => ({
|
|
@@ -253,6 +260,7 @@ class SchemaOrgDataTypes {
|
|
|
253
260
|
validate: async (propertyName, value, failures, container) => core.Validation.dateTimeString(propertyName, value, failures)
|
|
254
261
|
}));
|
|
255
262
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Time}`, () => ({
|
|
263
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
256
264
|
type: SchemaOrgTypes.Time,
|
|
257
265
|
defaultValue: new Date(),
|
|
258
266
|
jsonSchema: async () => ({
|
|
@@ -262,6 +270,7 @@ class SchemaOrgDataTypes {
|
|
|
262
270
|
validate: async (propertyName, value, failures, container) => core.Validation.timeString(propertyName, value, failures)
|
|
263
271
|
}));
|
|
264
272
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Image}`, () => ({
|
|
273
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
265
274
|
type: SchemaOrgTypes.Image,
|
|
266
275
|
defaultValue: "",
|
|
267
276
|
jsonSchema: async () => ({
|
|
@@ -271,6 +280,7 @@ class SchemaOrgDataTypes {
|
|
|
271
280
|
validate: async (propertyName, value, failures, container) => core.Url.validate(propertyName, value, failures)
|
|
272
281
|
}));
|
|
273
282
|
dataCore.DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.GeoCoordinates}`, () => ({
|
|
283
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
274
284
|
type: SchemaOrgTypes.GeoCoordinates,
|
|
275
285
|
defaultValue: { longitude: 0, latitude: 0 },
|
|
276
286
|
jsonSchema: async () => GeoCoordinatesSchema,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -192,6 +192,7 @@ class SchemaOrgDataTypes {
|
|
|
192
192
|
*/
|
|
193
193
|
static registerTypes() {
|
|
194
194
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Text}`, () => ({
|
|
195
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
195
196
|
type: SchemaOrgTypes.Text,
|
|
196
197
|
defaultValue: "",
|
|
197
198
|
jsonSchema: async () => ({
|
|
@@ -200,6 +201,7 @@ class SchemaOrgDataTypes {
|
|
|
200
201
|
validate: async (propertyName, value, failures, container) => Validation.string(propertyName, value, failures)
|
|
201
202
|
}));
|
|
202
203
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Integer}`, () => ({
|
|
204
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
203
205
|
type: SchemaOrgTypes.Integer,
|
|
204
206
|
defaultValue: 0,
|
|
205
207
|
jsonSchema: async () => ({
|
|
@@ -208,6 +210,7 @@ class SchemaOrgDataTypes {
|
|
|
208
210
|
validate: async (propertyName, value, failures, container) => Validation.integer(propertyName, value, failures)
|
|
209
211
|
}));
|
|
210
212
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Float}`, () => ({
|
|
213
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
211
214
|
type: SchemaOrgTypes.Float,
|
|
212
215
|
defaultValue: 0,
|
|
213
216
|
jsonSchema: async () => ({
|
|
@@ -216,6 +219,7 @@ class SchemaOrgDataTypes {
|
|
|
216
219
|
validate: async (propertyName, value, failures, container) => Validation.number(propertyName, value, failures)
|
|
217
220
|
}));
|
|
218
221
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Boolean}`, () => ({
|
|
222
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
219
223
|
type: SchemaOrgTypes.Boolean,
|
|
220
224
|
defaultValue: true,
|
|
221
225
|
jsonSchema: async () => ({
|
|
@@ -224,6 +228,7 @@ class SchemaOrgDataTypes {
|
|
|
224
228
|
validate: async (propertyName, value, failures, container) => Validation.boolean(propertyName, value, failures)
|
|
225
229
|
}));
|
|
226
230
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.URL}`, () => ({
|
|
231
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
227
232
|
type: SchemaOrgTypes.URL,
|
|
228
233
|
defaultValue: "",
|
|
229
234
|
jsonSchema: async () => ({
|
|
@@ -233,6 +238,7 @@ class SchemaOrgDataTypes {
|
|
|
233
238
|
validate: async (propertyName, value, failures, container) => Url.validate(propertyName, value, failures)
|
|
234
239
|
}));
|
|
235
240
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Date}`, () => ({
|
|
241
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
236
242
|
type: SchemaOrgTypes.Date,
|
|
237
243
|
defaultValue: new Date(),
|
|
238
244
|
jsonSchema: async () => ({
|
|
@@ -242,6 +248,7 @@ class SchemaOrgDataTypes {
|
|
|
242
248
|
validate: async (propertyName, value, failures, container) => Validation.dateString(propertyName, value, failures)
|
|
243
249
|
}));
|
|
244
250
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.DateTime}`, () => ({
|
|
251
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
245
252
|
type: SchemaOrgTypes.DateTime,
|
|
246
253
|
defaultValue: new Date(),
|
|
247
254
|
jsonSchema: async () => ({
|
|
@@ -251,6 +258,7 @@ class SchemaOrgDataTypes {
|
|
|
251
258
|
validate: async (propertyName, value, failures, container) => Validation.dateTimeString(propertyName, value, failures)
|
|
252
259
|
}));
|
|
253
260
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Time}`, () => ({
|
|
261
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
254
262
|
type: SchemaOrgTypes.Time,
|
|
255
263
|
defaultValue: new Date(),
|
|
256
264
|
jsonSchema: async () => ({
|
|
@@ -260,6 +268,7 @@ class SchemaOrgDataTypes {
|
|
|
260
268
|
validate: async (propertyName, value, failures, container) => Validation.timeString(propertyName, value, failures)
|
|
261
269
|
}));
|
|
262
270
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Image}`, () => ({
|
|
271
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
263
272
|
type: SchemaOrgTypes.Image,
|
|
264
273
|
defaultValue: "",
|
|
265
274
|
jsonSchema: async () => ({
|
|
@@ -269,6 +278,7 @@ class SchemaOrgDataTypes {
|
|
|
269
278
|
validate: async (propertyName, value, failures, container) => Url.validate(propertyName, value, failures)
|
|
270
279
|
}));
|
|
271
280
|
DataTypeHandlerFactory.register(`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.GeoCoordinates}`, () => ({
|
|
281
|
+
context: SchemaOrgContexts.ContextRoot,
|
|
272
282
|
type: SchemaOrgTypes.GeoCoordinates,
|
|
273
283
|
defaultValue: { longitude: 0, latitude: 0 },
|
|
274
284
|
jsonSchema: async () => GeoCoordinatesSchema,
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/standards-schema-org - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.44](https://github.com/twinfoundation/standards/compare/standards-schema-org-v0.0.1-next.43...standards-schema-org-v0.0.1-next.44) (2025-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* data types registered with full qualified names ([d64bd08](https://github.com/twinfoundation/standards/commit/d64bd082084172da543e9bfaffb78cdc34e6641d))
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.43](https://github.com/twinfoundation/standards/compare/standards-schema-org-v0.0.1-next.42...standards-schema-org-v0.0.1-next.43) (2025-05-20)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.42](https://github.com/twinfoundation/standards/compare/standards-schema-org-v0.0.1-next.41...standards-schema-org-v0.0.1-next.42) (2025-05-09)
|
|
4
18
|
|
|
5
19
|
|