Skip to content

Commit 5ca64cd

Browse files
committed
Improve endpoint mediatype regex
1 parent e68a54f commit 5ca64cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dibix.Sdk.CodeGeneration/Schema/dibix.endpoints.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
"MediaType": {
6868
"type": "string",
69-
"pattern": "^\\w+\\/[-+.\\w*]+$"
69+
"pattern": "^([a-z]+|\\*)\\/([-+.a-z\\d]+|\\*)(; charset=[a-z\\d-]+)?$"
7070
},
7171
"Body": {
7272
"type": "object",

0 commit comments

Comments
 (0)