Skip to content

Commit 0397a06

Browse files
committed
Release v0.2.1
1 parent 68363a9 commit 0397a06

File tree

4 files changed

+170
-172
lines changed

4 files changed

+170
-172
lines changed

example_schema.json

Lines changed: 78 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,82 @@
11
{
2-
"title": "Multi-Select Example",
3-
"type": "object",
4-
"properties": {
5-
"colors": {
6-
"type": "array",
7-
"title": "Select Colors",
8-
"description": "Choose one or more colors",
9-
"items": {
10-
"type": "string",
11-
"enum": ["red", "green", "blue", "yellow", "purple", "orange"]
12-
},
13-
"uniqueItems": true,
14-
"minItems": 1,
15-
"maxItems": 3
2+
"title": "Example Test Form",
3+
"description": "A schema to test all major widget types.",
4+
"type": "object",
5+
"properties": {
6+
"name": {
7+
"type": "string",
8+
"title": "Full Name",
9+
"description": "Enter your full name."
10+
},
11+
"age": {
12+
"type": "integer",
13+
"title": "Age",
14+
"minimum": 0,
15+
"maximum": 120
16+
},
17+
"subscribe": {
18+
"type": "boolean",
19+
"title": "Subscribe to newsletter"
20+
},
21+
"favorite_color": {
22+
"type": "string",
23+
"title": "Favorite Color",
24+
"enum": ["red", "green", "blue", "yellow"]
25+
},
26+
"hobbies": {
27+
"type": "array",
28+
"title": "Hobbies",
29+
"description": "Select one or more hobbies.",
30+
"items": {
31+
"type": "string",
32+
"enum": ["reading", "sports", "music", "travel", "coding"]
33+
},
34+
"uniqueItems": true,
35+
"minItems": 1
36+
},
37+
"profile": {
38+
"type": "object",
39+
"title": "Profile",
40+
"properties": {
41+
"bio": {
42+
"type": "string",
43+
"title": "Bio",
44+
"maxLength": 200
45+
},
46+
"website": {
47+
"type": "string",
48+
"title": "Website",
49+
"format": "uri"
1650
}
51+
}
52+
},
53+
"contact_method": {
54+
"title": "Preferred Contact Method",
55+
"oneOf": [
56+
{
57+
"title": "Email",
58+
"type": "object",
59+
"properties": {
60+
"email": {
61+
"type": "string",
62+
"format": "email"
63+
}
64+
},
65+
"required": ["email"]
66+
},
67+
{
68+
"title": "Phone",
69+
"type": "object",
70+
"properties": {
71+
"phone": {
72+
"type": "string",
73+
"pattern": "^[0-9\\-\\+]{9,15}$"
74+
}
75+
},
76+
"required": ["phone"]
77+
}
78+
]
1779
}
80+
},
81+
"required": ["name", "age", "favorite_color", "hobbies"]
1882
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "koreui"
7-
version = "0.2.0"
7+
version = "0.2.1"
88
description = "Dynamic GUI Generator from JSON Schema"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from .kore import JsonSchemaForm
22
from .loader import load_schema
33

4-
__version__ = "0.2.0"
4+
__version__ = "0.2.1"
55

66
__all__ = ["JsonSchemaForm", "load_schema"]

0 commit comments

Comments
 (0)