struct

Wacli::Wasm::JsonDb

Inherits Struct / Value / Object

Tiny JSON-file "db" intended for WASI. Schema (v1): { "schema": 1, "reports": { "<key>": { "openapiVersion": "3.0", "report": "..." } } }

Constants

SCHEMA = 1

Constructors

load(path : String) : JsonDb
Source
new(reports : Hash(String, Report))
Source

Instance methods

get_report(key : String) : Report | Nil
Source
reports
Source
save(path : String) : Nil
Source
set_report(key : String, openapi_version : String, report : String) : Nil
Source
to_json
Source

Nested types