Skip to content

Commit 7d82450

Browse files
committed
Successfully Save Files, Proper Validation, Proper Selection, and Ready for Testing
1 parent 0eb429c commit 7d82450

21 files changed

+373
-104
lines changed

Program.cs

Lines changed: 264 additions & 65 deletions
Large diffs are not rendered by default.
3 KB
Binary file not shown.
0 Bytes
Binary file not shown.
888 Bytes
Binary file not shown.

bin/Release/net8.0/config.txt renamed to bin/Release/net8.0/files/config.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ PropertySyntaxShown = true;
33
ShowFieldTypeAsName = false;
44
JsonExtentsionType = .json;
55
ColorfulText = true;
6-
SaveFilePath[JSON] = jsons;
7-
SaveFilePath[Schema] = schemas;
6+
SaveFilePath[JSON] = files/jsons;
7+
SaveFilePath[Schema] = files/schemas;
88
SaveSchemaWithCustomNames = true;
99
DefaultCaseCorrection = true;
1010
DescriptionsForSchemaProperties = true;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"Name": "Thin C",
3+
"CoolMeter": "50",
4+
"Describe": {
5+
"Coolness": false,
6+
"Coolint": 666.0,
7+
"Coolstr": "Its douchey but cool",
8+
"Coolray": [
9+
"Enhanced Narwhal",
10+
"Keks307",
11+
"Arackulele",
12+
"Cevin2006",
13+
"Wolfcurse"
14+
],
15+
"Coolnum": 1.0
16+
}
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"Rating": 5.0,
3+
"RatingContent": {
4+
"Rating Name": "My Rating",
5+
"Description": [
6+
"I",
7+
"AM",
8+
"A",
9+
"GHOST",
10+
"IN",
11+
"THE",
12+
"CODE"
13+
],
14+
"Image Index": []
15+
}
16+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-04/schema#",
3+
"title": "MyCoolSchemaDawg",
4+
"description": "A schema that defines your Coolness Dudes",
5+
"type": "object",
6+
"properties": {
7+
"Name": {
8+
"type": "string",
9+
"description": "What is your name?",
10+
"minLength": 0,
11+
"maxLength": 999,
12+
"default": "Enter Here!"
13+
},
14+
"CoolMeter": {
15+
"type": "number",
16+
"description": "Define how Cool you are as a percentage",
17+
"minimum": 0,
18+
"maximum": 100,
19+
"exclusiveMinimum": false,
20+
"exclusiveMaximum": false,
21+
"multipleOf": 1,
22+
"default": "50"
23+
},
24+
"Describe": {
25+
"type": "object",
26+
"description": "Describe your coolness to me!",
27+
"properties": {
28+
"Coolness": {
29+
"type": "boolean",
30+
"description": "Would you say that you are a Coool dude?",
31+
"const": "true",
32+
"enum": [true, false]
33+
},
34+
"Coolint": {
35+
"type": "integer",
36+
"description": "What is your favorite Number?",
37+
"minimum": 0,
38+
"maximum": 99999999999999999999999,
39+
"exclusiveMinimum": false,
40+
"exclusiveMaximum": false,
41+
"multipleOf": 1
42+
},
43+
"Coolstr": {
44+
"type": "string",
45+
"description": "Describe me, what is your coolness like?",
46+
"minLength": 5,
47+
"maxLength": 99
48+
},
49+
"Coolray": {
50+
"type": "array",
51+
"description": "AN Array of all the Coool dudes you know",
52+
"items": { "type": "string" },
53+
"minItems": 0,
54+
"maxItems": 10,
55+
"uniqueItems": true
56+
},
57+
"Coolnum": {
58+
"type": "number",
59+
"description": "On a scale of 1-10 how cool am I?",
60+
"minimum": 0,
61+
"maximum": 10,
62+
"exclusiveMinimum": true,
63+
"exclusiveMaximum": false,
64+
"multipleOf": 1,
65+
"default": "10"
66+
}
67+
}
68+
}
69+
},
70+
"required": ["Name", "CoolMeter", "Describe"]
71+
}
File renamed without changes.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
JSON Files:
2-
AlbumSucksDudes.json
3-
custom_output.json
42
output.json
53

64
Schema Directories:

0 commit comments

Comments
 (0)