Skip to content

Commit 6ec2fd8

Browse files
authored
Fix JSON in protocol error message body definitions (#75)
1 parent d3b3ff1 commit 6ec2fd8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

include/aws/event-stream/private/event_stream_rpc_priv.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,25 @@ static const struct aws_byte_cursor s_json_content_type_value =
2929

3030
static const struct aws_byte_cursor s_invalid_stream_id_error =
3131
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("{ \"message\": \"non-zero stream-id field is only allowed for messages of "
32-
"type APPLICATION_MESSAGE. The stream id max value is INT32_MAX.\"; }");
32+
"type APPLICATION_MESSAGE. The stream id max value is INT32_MAX.\" }");
3333

3434
static const struct aws_byte_cursor s_invalid_client_stream_id_error =
3535
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("{ \"message\": \"stream-id values must be monotonically incrementing. A "
36-
"stream-id arrived that was lower than the last seen stream-id.\"; }");
36+
"stream-id arrived that was lower than the last seen stream-id.\" }");
3737

3838
static const struct aws_byte_cursor s_invalid_new_client_stream_id_error =
3939
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("{ \"message\": \"stream-id values must be monotonically incrementing. A new "
40-
"stream-id arrived that was incremented by more than 1.\"; }");
40+
"stream-id arrived that was incremented by more than 1.\" }");
4141

42-
static const struct aws_byte_cursor s_invalid_message_type_error = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL(
43-
"{ \"message\": \"an invalid value for message-type field was received.\"; }");
42+
static const struct aws_byte_cursor s_invalid_message_type_error =
43+
AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL("{ \"message\": \"an invalid value for message-type field was received.\" }");
4444

4545
static const struct aws_byte_cursor s_invalid_message_error = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL(
4646
"{ \"message\": \"A message was received with missing required fields. Check that your client is sending at least, "
47-
":message-type, :message-flags, and :stream-id\"; }");
47+
":message-type, :message-flags, and :stream-id\" }");
4848

4949
static const struct aws_byte_cursor s_internal_error = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL(
50-
"{ \"message\": \"An error occurred on the peer endpoint. This is not likely caused by your endpoint.\"; }");
50+
"{ \"message\": \"An error occurred on the peer endpoint. This is not likely caused by your endpoint.\" }");
5151

5252
static const struct aws_byte_cursor s_connect_not_completed_error = AWS_BYTE_CUR_INIT_FROM_STRING_LITERAL(
5353
"{ \"message\": \"A CONNECT message must be received, and the CONNECT_ACK must be sent in response, before any "

0 commit comments

Comments
 (0)