[REQUEST] JSON schema for rich-text metafield format

Rich-text metafields are stored in a JSON format but a common request is to be able to convert arbitrary HTML to that JSON format. If you try to upload invalid JSON to the API you’ll receive an error saying the provided JSON doesn’t match the schema.

Is it possible to get a copy of the JSON schema for the rich-text metafield format to help in validation?

I understand why converting HTML → rich-text JSON is outside the scope of the API but having the schema for the format would help make our converters more reliable.

Best,
Daniel

6 Likes