{
  "$schema": "../../schemas/utility.schema.json",
  "kind": "utility",
  "name": "Values",
  "version": "1.0.0-draft.1",
  "purpose": "Values value operations. No hidden external Service communication.",
  "types": "types.json",
  "functions": {
    "boolean": {
      "parameters": [
        {
          "name": "value",
          "type": "Values.BooleanSource",
          "required": true
        }
      ],
      "returns": "core.boolean",
      "purpose": "Explicit scalar conversion as defined in this contract.",
      "statementOnly": false
    },
    "text": {
      "parameters": [
        {
          "name": "value",
          "type": "core.scalar",
          "required": true
        }
      ],
      "returns": "core.string",
      "purpose": "Explicit scalar conversion as defined in this contract.",
      "statementOnly": false
    }
  },
  "rules": [
    "boolean accepts a boolean or exactly the strings true and false. There is no truthiness conversion.",
    "text is an explicit scalar conversion, not arbitrary object or host-handle stringification."
  ]
}
