Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 994 Bytes

File metadata and controls

41 lines (31 loc) · 994 Bytes

get_canonical_pattern

⚠️ Deprecated (CF-7). Use patterns(kind="canonical") instead. This name still resolves and returns byte-identical output for a deprecation window, but is no longer listed by default and emits a one-line notice.

Highest-quality example of a pattern in the codebase (e.g. canonical route handler). Use as a copy-paste template before writing similar code.

Input schema

{
  "type": "object",
  "properties": {
    "pattern_type": {
      "type": "string",
      "description": "route_handler | model_definition"
    },
    "domain": {
      "type": "string",
      "description": "Optional domain filter."
    }
  },
  "required": [
    "pattern_type"
  ]
}

Required arguments

  • pattern_type

Properties

Name Type Description
pattern_type string route_handler | model_definition
domain string Optional domain filter.

See also