Closed olivierto closed 2 years ago
Sorry for the timeloss... I figured out by re reading the json schema docs The proper syntax is :
supplierInvoiceFile: {
type: 'object',
properties: {
type: {type: 'string'},
filename: {type: 'string'},
contentType: {type: 'string'},
content: {type: 'string', contentEncoding:'binary', contentMediaType: 'application/pdf'},
},
},
Hey there! First of all Whow 🤯 So great utility plugin ! really powerfull and easy to use! you are typescript ninjas ! Great job !
Here is my issue. I'm using AJV format like this
Here is my schema code:
and here is the calling code :
As soon as the property content is equal to "binary" it seems that the FromSchema is broken.
Is this a normal behavior as the support for binary type is not provided ? Or am I doing something wrong ?
Thanks for your answer !