Expand description
Generic JSON/string parsing utilities shared across the platform.
These are provider- and package-agnostic helpers over serde_json::Value.
They live in the leaf whipplescript-core crate so both the CLI surfaces and
the wasm-kernel-hostable package registry validators (which cannot call back
into the CLI binary) can reach them.
Functions§
- optional_
json_ string - Read an optional non-empty string field.
- optional_
json_ string_ any - Read the first present non-empty string among
fields. - optional_
json_ string_ array - Read an optional string array, dropping empty entries.
- quoted_
platform_ values - Join
valuesas a comma-separated list of backtick-quoted tokens, for “expected one of …” diagnostics. - require_
json_ array_ field - Read a required array field by reference, or an actionable error.
- required_
json_ string - Read a required non-empty string field, or an actionable error naming
ownerandfield.