question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Correct statement that media type */* is equivalent to application/octet-stream

See original GitHub issue

The OAS 3 documentation states:

application/octet-stream: # any media type is accepted, functionally equivalent to */*

I believe the intent here it to state that the type application/* is functionally equivalent to application/octet-stream. Perhaps not. At any rate, */*, if * is a wildcard, would not thought to be equivalent to application/octet-stream in the common sense, as the wildcard for type (remember, media type is {type} + '/' + {subtype}) should be taken to allow text, image, multipart, message, and so on in addition to application. If my spec says my service endpoint accepts */*, I don’t want the callers to infer from OAS documentation that they are required to send some subtype of application.

It could also be that I’m missing something that came out of internal discussion. Can you please explain this decision so my teams can better understand how to interact with the spec or otherwise consider my request to change the specification and existing documentation?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MikeRalphsoncommented, Oct 23, 2018

Will be included in v3.0.3. Thanks again for pointing this out.

1reaction
darrelmillercommented, Oct 11, 2018

We shall remove the comment “# any media type is accepted, functionally equivalent to */*” as it does not appear to add any value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do I need Content-Type: application/octet-stream for file ...
application /octet-stream is defined as "arbitrary binary data" in RFC 2046, and there's a definite overlap here of it being appropriate for ...
Read more >
About "application/octet-stream" MIME attachments - IU KB
A MIME attachment with the content type "application/octet-stream" is a binary file. Typically, it will be an application or a document that ...
Read more >
MediaType (Spring Framework 6.0.3 API)
A String equivalent of APPLICATION_NDJSON . static final MediaType. APPLICATION_OCTET_STREAM. Public constant media type for application/octet-stream .
Read more >
RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part ...
Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types (RFC 2046, ... unrecognized subtypes as being equivalent to "application/octet- stream".
Read more >
Media type - Wikipedia
Media types are also used by other internet protocols such as HTTP and document file formats such as HTML, for similar purposes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found