addedInput schema / properties / policy / properties
Added value: +{
+ "actions": {
+ "additionalProperties": {
+ "description": "Operation that must be DONE in the record.",
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "description": "Past-tense verb to operation, for example {\"refunded\": \"billing.refund\"}. Claiming the verb needs that operation DONE in the record.",
+ "maxProperties": 40,
+ "propertyNames": {
+ "pattern": "^[a-z]{2,20}$"
+ },
+ "type": "object"
+ },
+ "description": {
+ "description": "Optional policy description.",
+ "type": "string"
+ },
+ "discounts": {
+ "description": "Approved discounts. Any other \"N% off\" claim is a finding.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "description": "Price items it applies to; omit for all.",
+ "items": {
+ "type": "string"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "percent": {
+ "description": "Percent off.",
+ "exclusiveMinimum": 0,
+ "maximum": 100,
+ "type": "number"
+ }
+ },
+ "required": [
+ "percent"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "forbid": {
+ "description": "Phrases the agent must not say.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "Lowercase slug. Findings are reported as forbid:<id>.",
+ "pattern": "^[a-z0-9-]{1,40}$",
+ "type": "string"
+ },
+ "negatable": {
+ "description": "Default true: a negated mention (\"we do not guarantee\") passes.",
+ "type": "boolean"
+ },
+ "phrases": {
+ "description": "Literal phrases, never regular expressions.",
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ },
+ "why": {
+ "description": "Reason shown with the finding.",
+ "maxLength": 200,
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "phrases"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "name": {
+ "description": "Optional policy name.",
+ "type": "string"
+ },
+ "prices": {
+ "description": "Approved prices in USD. A wrong price, another currency, or an unapproved discount for an item is a finding.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "aliases": {
+ "description": "Names to match instead of item, for example [\"Pro\", \"Pro plan\"].",
+ "items": {
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "amount": {
+ "description": "The approved price. Use amount or amounts, not both.",
+ "minimum": 0,
+ "type": "number"
+ },
+ "amounts": {
+ "description": "Several approved prices for the item, such as monthly and annual.",
+ "items": {
+ "minimum": 0,
+ "type": "number"
+ },
+ "maxItems": 8,
+ "minItems": 1,
+ "type": "array"
+ },
+ "item": {
+ "description": "Item name as customers say it, for example \"Pro\".",
+ "maxLength": 80,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "item"
+ ],
+ "type": "object"
+ },
+ "maxItems": 50,
+ "type": "array"
+ },
+ "unknownAmounts": {
+ "description": "\"flag\" (default) reports dollar amounts not tied to an approved price; \"allow\" ignores them.",
+ "enum": [
+ "flag",
+ "allow"
+ ],
+ "type": "string"
+ }
+}