lemma-engine 0.9.1

A pure, declarative language for business rules.
Documentation
[
  {
    "kind": "parsing",
    "message": "unexpected token",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 3, "column": 5, "length": 4 },
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "validation",
    "message": "'x' is not defined",
    "related_data": "x",
    "spec": "sample",
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 4, "column": 8, "length": 1 },
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "inversion",
    "message": "cannot invert a piecewise rule with an unbounded arm",
    "related_data": null,
    "spec": "sample",
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 6, "column": 1, "length": 12 },
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "registry",
    "message": "spec not found in registry",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 2, "column": 7, "length": 13 },
    "suggestion": null,
    "repository": "@iso/missing",
    "registry_kind": "not_found",
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "registry",
    "message": "not authorized to fetch this repository",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 2, "column": 7, "length": 13 },
    "suggestion": null,
    "repository": "@acme/private",
    "registry_kind": "unauthorized",
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "registry",
    "message": "DNS resolution failed",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 2, "column": 7, "length": 13 },
    "suggestion": null,
    "repository": "@acme/pricing",
    "registry_kind": "network_error",
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "registry",
    "message": "registry returned HTTP 500",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 2, "column": 7, "length": 13 },
    "suggestion": null,
    "repository": "@acme/pricing",
    "registry_kind": "server_error",
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "registry",
    "message": "malformed response body",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": { "attribute": "sample.lemma", "line": 2, "column": 7, "length": 13 },
    "suggestion": null,
    "repository": "@acme/pricing",
    "registry_kind": "other",
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "missing_repository",
    "message": "@iso/countries is not loaded in this workspace",
    "related_data": null,
    "spec": "sample",
    "related_spec": null,
    "source": null,
    "suggestion": "load the dependency first",
    "repository": "@iso/countries",
    "registry_kind": null,
    "request_kind": null,
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "request",
    "message": "spec 'absent' has no version effective at the requested time",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": null,
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": "spec_not_found",
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "request",
    "message": "rule 'total' not found",
    "related_data": null,
    "spec": "sample",
    "related_spec": null,
    "source": null,
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": "rule_not_found",
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "request",
    "message": "decimal values must be passed as strings",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": null,
    "suggestion": null,
    "repository": null,
    "registry_kind": null,
    "request_kind": "invalid_request",
    "limit_name": null,
    "limit_value": null,
    "actual_value": null
  },
  {
    "kind": "resource_limit",
    "message": "max_source_size_bytes (limit: 100, actual: 512)",
    "related_data": null,
    "spec": null,
    "related_spec": null,
    "source": null,
    "suggestion": "split the source into smaller files",
    "repository": null,
    "registry_kind": null,
    "request_kind": null,
    "limit_name": "max_source_size_bytes",
    "limit_value": "100",
    "actual_value": "512"
  }
]