Skip to content

Commit

Permalink
Switch back from "t" to "type".
Browse files Browse the repository at this point in the history
Basically a manual revert of 342ccf6

It was weird that "t" was the only property that wasn't typed out. And with improvements in #7 and #6 it's not as necessary.

Part of #36.
  • Loading branch information
jkomoros committed Aug 12, 2023
1 parent 0876c74 commit cbb6859
Show file tree
Hide file tree
Showing 13 changed files with 464 additions and 464 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Create a new file in `seeds/file.json` (you can name it whatever you want as lon
},
"seeds": {
"": {
"t": "log",
"type": "log",
"value": "Hello, world"
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ The simplest value is just a literal value, like a string, a boolean, or a numbe
},
"seeds": {
"": {
"t": "log",
"type": "log",
"value": "Hello, world"
}
}
Expand All @@ -161,13 +161,13 @@ But seeds can also reference other seeds:
},
"seeds": {
"": {
"t": "log",
"type": "log",
"value": {
"seed": "sub-seed"
}
},
"sub-seed": {
"t": "template",
"type": "template",
"template": "{{name}} is {{age}}",
"vars": {
"name" : "Alex",
Expand All @@ -194,7 +194,7 @@ You can also fetch seeds from an adjacent file:
},
"seeds": {
"": {
"t": "log",
"type": "log",
"value": {
"packet": "./other.json",
"seed": "sub-seed"
Expand All @@ -216,7 +216,7 @@ You can also fetch a remote packet:
},
"seeds": {
"": {
"t": "log",
"type": "log",
"value": {
"packet": "https://komoroske.com/seeds/other.json",
"seed": "sub-seed"
Expand Down Expand Up @@ -244,9 +244,9 @@ For example, this:
},
"seeds": {
"foo" : {
"t": "log",
"type": "log",
"value": {
"t": "log",
"type": "log",
"value": true
}
}
Expand All @@ -264,13 +264,13 @@ Will unroll to this:
},
"seeds": {
"foo" : {
"t": "log",
"type": "log",
"value": {
"seed": "foo-value"
}
},
"foo-value": {
"t": "log",
"type": "log",
"value": true
}
}
Expand All @@ -290,9 +290,9 @@ nested seedData:
},
"seeds": {
"foo" : {
"t": "log",
"type": "log",
"value": {
"t": "log",
"type": "log",
"seed": "bar",
"value": true
}
Expand All @@ -311,13 +311,13 @@ Yields
},
"seeds": {
"foo" : {
"t": "log",
"type": "log",
"value": {
"seed": "bar"
}
},
"bar": {
"t": "log",
"type": "log",
"seed": "bar",
"value": true
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"$ref": "#/properties/value"
},
"propertyNames": {
"pattern": "^(?!t$)[a-zA-Z0-9-_.]*$"
"pattern": "^(?!type$)[a-zA-Z0-9-_.]*$"
}
},
{
Expand Down
Loading

0 comments on commit cbb6859

Please sign in to comment.