skip to Main Content

If-then condition in JSON Schema isn't working

Following is the jsonSchema. { "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": [ { "type": "object", "properties": { "isMerchant": { "type": "boolean" }, "isAgent": { "type": "boolean" }, "cashLoan": { "type": "boolean" }, "personalDetail": { "type": "string" }, "contact": { "type": "object",…

VIEW QUESTION

Writing a JSON schema, problem with value type change

Here is what is returned from a API: [ { "id": "63c576504988e70xx", "value": { "text": "638dfbd58b3dde05xx" }, "idCustomField": "62ed5fa43601c14xxx", "idModel": "63c576504988e70249xxx", "modelType": "card" }, { "id": "63c576504988e71xx", "value": { "number": "8" }, "idCustomField": "62ed5fa43601c13xxx", "idModel": "63c576504988e70249xxx", "modelType": "card" }, {…

VIEW QUESTION
Back To Top
Search