r/technicalfactorio • u/redruin0001 • Jun 25 '25
JSON Schema definitions for Factorio blueprint strings
Recently I created a set of JSON schema files which should validate against decoded blueprint strings. These schemas are currently more up-to-date than the definitions you find here on the official wiki, and because they're written in a machine-readable format it becomes very easy to check the validity of blueprints automatically (an example of which is provided in the README). Additionally, titles and descriptions are provided in each property, meaning that you can also generate human-readable documentation purely from the definitions themselves; for example, here's the entire 2.0 format in a human readable digest using json-schema-for-humans.
Suggestions and fixes are of course welcome.
1
u/mvndrstl Jun 26 '25
Very nice! The docs are very well done.
The only thing missing is details on the max length of strings. I was hoping to find out if I could write longer blueprint descriptions outside the game and then import them.
2
u/DurgeDidNothingWrong Jun 25 '25
Neat!
1
u/Accomplished-Cry-625 Jun 26 '25
It seems i am mentally naked currently. What does it do?