I'd like to include a pattern for an ipfs content identifier (CID) in a json schema. To do this, I need to create a regex to match them.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://json-schema.org/draft-07/schema#",
"title": "Example schema with an ipfs CID",
{ "type": "object",
"properties": {
"ipfs": { "type": "string","pattern": "<CID regex here>"}
}
}
What is a good way to do a regex for an IPFS CID?