HTTP Message Binding v0.2.0
The HTTP message binding v0.2.0 is used to define the schema for the headers of an HTTP message.
Message Properties
| Property | Type | Required | Description |
|---|---|---|---|
bindingVersion | string | No | Binding version (defaults to 0.2.0). |
headers | Schema Object | No | A schema object defining the HTTP headers. |
Example
This describes the message for a webhook, specifying that the Content-Type header is required.
yaml
messages:
userSignupEvent:
bindings:
http:
bindingVersion: '0.2.0'
headers:
type: object
required:
- 'Content-Type'
properties:
Content-Type:
type: string
enum: ['application/json']Changelog
Version 0.2.0
- This version only includes the
headersproperty. ThestatusCodeproperty was added inv0.3.0.