usually we set content in postman like application/json
.
what is the meaning of
application/schema+json
in content type, is it a way to send multiple type of content?.
will it work if anyone send content type like application/json+schema
.
What is the meaning of
application/schema+json
?
application/schema+json
is a media type for JSON Schema. As of February 2020, it is not registered in IANA. However, there's a draft proposing it's registration:
This document proposes a new media type
application/schema+json
to identify a JSON Schema for describing JSON data. [...]
A media type (formerly known as MIME type) is an identifier for file formats and format contents transmitted on the Internet and consists of a type and a subtype and can optionally define a suffix and parameters. The suffix is intended to specify the underlying structure of that media type.
In application/schema+json
, the suffix is +json
, indicates the underlying structure of that media type is a JSON document.
Will it work if anyone send content type like
application/json+schema
?
I'm not aware of the existence of application/json+schema
.
The correct media type is application/schema+json
.