Skip to content

add support for vendor specific mime types in serialization/deserialization in ruby #1661

Closed

Description

more details at #1461

The factories registries for parse node and serialization need to to be updated to perform a staggered lookup.

  1. The headers can technically contain multiple content mime types separated by ;, so we need to split and trim first.
  2. The mime type can be vendor specific application/vendor.product+json, we should try an exact match and return it if we find a factory.
  3. If we don't, we should remove the vendor part vendor.product and lookup the registry with a non-vendor specific entry, return the factory we find if any.
  4. If we haven't found anything, throw an error (like we do today)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions