Closed
Description
openedon Jun 27, 2022
more details at #1461
The factories registries for parse node and serialization need to to be updated to perform a staggered lookup.
- The headers can technically contain multiple content mime types separated by
;
, so we need to split and trim first. - 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. - 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. - 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