From fb934d2049f09d3410a3ea7e4febec0cb0e1f137 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Thu, 11 Jan 2024 12:18:05 -1000 Subject: [PATCH] add status code --- http/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http/README.md b/http/README.md index f2becbd3..ebdd2a98 100644 --- a/http/README.md +++ b/http/README.md @@ -6,7 +6,7 @@ This document defines how to describe HTTP-specific information on AsyncAPI. ## Version -Current version is `0.2.0`. +Current version is `0.3.0`. @@ -73,6 +73,7 @@ This object contains information about the message representation in HTTP. Field Name | Type | Description ---|:---:|--- `headers` | [Schema Object][schemaObject] \| [Reference Object](referenceObject) | A Schema object containing the definitions for HTTP-specific headers. This schema MUST be of type `object` and have a `properties` key. +`status-code` | number | The HTTP response status code according to [RFC 9110](https://httpwg.org/specs/rfc9110.html#overview.of.status.codes). `bindingVersion` | string | The version of this binding. If omitted, "latest" MUST be assumed. This object MUST contain only the properties defined above. @@ -86,6 +87,7 @@ channels: testMessage: bindings: http: + status-code: 200 headers: type: object properties: