Skip to content

Commit 607db28

Browse files
committed
Add title and description to json schema
1 parent 6931683 commit 607db28

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blockwise",
3-
"version": "2.9.0",
3+
"version": "2.10.0",
44
"description": "Minimalistic utility lib for writing simple 2d games where everything is a block.",
55
"main": "dist/index.js",
66
"repository": {

src/block-schema.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export const blockSchema = {
22
type: "object",
3+
title: "Block",
4+
description: "A rectangle with a position, width and height.",
35
required: ["x", "y", "w", "h"],
46
properties: {
57
x: { type: "number" },
@@ -8,4 +10,4 @@ export const blockSchema = {
810
h: { type: "number" }
911
},
1012
additionalProperties: false
11-
};
13+
} as const;

0 commit comments

Comments
 (0)