This tool generates C# dotnet classes based on BO4E-JSON-Schemas. it takes advantage of QuickType npm package to generate C# classes from JSON schemas.
For fetching last json schemas you can use BO4E-Schema-Tool
tool.
pip install bo4e-dotnet-generator
The bo4e-dotnet-generator
tool has two arguments:
-
schema_dir
: This is the directory path that should contain the BO4E schema files. It is a required argument. -
output_dir
: This is the output directory path where the generated C# classes will be saved. If not specified, the default directory isdotnet-classes
.
To use the tool, run the following command in your terminal:
bo4e-dotnet-generator [schema_dir] [output_dir]
Please follow the instructions in our Python Template Repository. And for further information, see the Tox Repository.
This script checks the APPDATA
environment variable to find the Quicktype.cmd
npm package in the AppData path on Windows.