asyncapi / asyncapi/spec

Should defaultContentType have a default?

Open
#319 7 comments 0 reactions 1 assignee Claimed by @fmvilas View on GitHub
🐞 Bug keep-open
Dominant language
JavaScript
Stars
5.3k
Forks
382
Avg merge
7m
Merged PRs (30d)
4

Description

[defaultContentType](https://github.com/asyncapi/asyncapi/blob/master/versions/2.0.0/asyncapi.md#default-content-type) doesn't have a default value and it's not listed on the AsyncAPI Object, even though it's at root level and must be there.

Should we make this field mandatory or have a default value of, for example, `application/json`?

Thanks, @jstoiko for [your work on the TCK](https://github.com/asyncapi/tck/pull/1), it helped raise the issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.