ocppi/tools/codegen
black-desk 339811562b
fix: update type of annotations in status
Signed-off-by: black-desk <me@black-desk.cn>
2024-01-23 10:48:00 +08:00
..
quicktype@69d1574e50 chore: update codegen 2023-10-22 11:33:26 +08:00
README.md chore: update codegen 2023-10-22 11:33:26 +08:00
create-patch.sh refact!: merge libs 2024-01-16 17:04:54 +08:00
fix.patch fix: update type of annotations in status 2024-01-23 10:48:00 +08:00

README.md

codegen

codegen.sh use quicktype to generate json (de)serializing code in libs/runtime/include from runtime-spec.

The generated code needs to apply a little patch to compile.

You can recreate that patch follow these instructions:

  1. Remove old patch

    rm ./fix.patch
    
  2. Run codegen.sh

    ./codegen.sh
    
  3. Run create-patch.sh, it will start a new shell.

    ./create-patch.sh
    
  4. Change the code as your wish and leave libs/runtime/include.orig untouched

  5. Exit

    exit