Hi Reamon,
How are you creating IS Doc type to pass it into conformsTo field?
conformsTo is a String field, How can I pass a Doc type to string field.
Here is my json schema:
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Welcome",
"definitions": {
"Welcome": {
"type": "object",
"additionalProperties": false,
"properties": {
"header": {
"$ref": "#/definitions/header"
},
"body": {
"$ref": "#/definitions/body"
}
},
"required": [
"body",
"header"
],
"title": "Welcome"
},
"body": {
"type": "object",
"additionalProperties": false,
"properties": {
"phonenumber": {
"type": "string",
"pattern": "^[\\d]{9}$"
}
},
"required": [
"phonenumber"
]
},
"header": {
"type": "object",
"additionalProperties": false,
"properties": {
"Id": {
"type": "string",
"pattern": "^\\d{10}$"
}
},
"required": [
"Id"
]
}
}
}
when I pass in the schema directly into conformTo field, it throws this error
com.wm.app.b2b.server.ServiceException: JSON schema validation failed:{} is not a valid JSON document type.
Please let me know.
Thanks
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB