Skip to content

Capability Constraint Example #27

Description

@silvait

The example for capability constraint in the Capabilities docs is

{
  "capability": "transfer_funds",
  "constraints": {
    "to": { "const": "acc_456" },
    "amount": { "maximum": 1000 },
    "currency": { "const": "USD" }
  }
}

but based on the v1.0-draft spec, shouldn't it be like this?

{
  "capability": "transfer_funds",
  "constraints": {
    "to": "acc_456",
    "amount": { "max": 1000 },
    "currency": "USD"
  }
}
  • max instead of maximum
  • Exact value — "field": value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions