Media Type Registry

Text: Text-based media types

Media Type(s):

text/* (IANA)RFC2045, RFC2046 §4.1
text/plain (IANA)RFC2046 §4.1.3, RFC3676

This page also applies to any unrecognized text-based (not just text/*) media type.

OAS References:

Parameter Object
Header Object
Encoding Object

Summary

A plain text document is modeled as a single string.

Remarks

Note that unlike JSON strings, the contents of the string representing the plain text are not quoted when serializing to a document. While a Schema Object of {type: string, const: foo} for JSON validates the JSON value "foo", for plain text it validates foo, without quotes.