{"action":"created","issue":{"url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/1354","repository_url":"https://api.github.com/repos/ngx-formly/ngx-formly","labels_url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/1354/labels{/name}","comments_url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/1354/comments","events_url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/1354/events","html_url":"https://github.com/ngx-formly/ngx-formly/issues/1354","id":394937810,"node_id":"MDU6SXNzdWUzOTQ5Mzc4MTA=","number":1354,"title":"One field dependant on another how to write schema for the same","user":{"login":"LalitKushwah","id":15167290,"node_id":"MDQ6VXNlcjE1MTY3Mjkw","avatar_url":"https://avatars1.githubusercontent.com/u/15167290?v=4","gravatar_id":"","url":"https://api.github.com/users/LalitKushwah","html_url":"https://github.com/LalitKushwah","followers_url":"https://api.github.com/users/LalitKushwah/followers","following_url":"https://api.github.com/users/LalitKushwah/following{/other_user}","gists_url":"https://api.github.com/users/LalitKushwah/gists{/gist_id}","starred_url":"https://api.github.com/users/LalitKushwah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LalitKushwah/subscriptions","organizations_url":"https://api.github.com/users/LalitKushwah/orgs","repos_url":"https://api.github.com/users/LalitKushwah/repos","events_url":"https://api.github.com/users/LalitKushwah/events{/privacy}","received_events_url":"https://api.github.com/users/LalitKushwah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-31T06:52:32Z","updated_at":"2018-12-31T08:46:43Z","closed_at":"2018-12-31T08:46:43Z","author_association":"NONE","body":"<!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATING\r\n-->\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request\r\n[x] Query\r\n```\r\nHello All,\r\n\r\nIf I want to validate one field dependent on another filed's value how can I achieve this. example\r\n1st field:\r\ntype: number\r\n\r\n2nd field:\r\ntype: number\r\n\r\nExpectation:\r\nValue of first filed should be greater than second filed\r\n\r\nHere is the schema created:\r\n\r\n\"inputSchema\": [\r\n    {\r\n      \"label\": \"Calendar\",\r\n      \"fields\": [\r\n        {\r\n          \"wrappers\": [\r\n            \"panel\"\r\n          ],\r\n          \"templateOptions\": {\r\n            \"label\": \"Calendar\"\r\n          },\r\n          \"fieldGroup\": [\r\n            {\r\n              \"key\": \"from-year\",\r\n              \"type\": \"input\",\r\n              \"defaultValue\": 1990,\r\n              \"templateOptions\": {\r\n                \"label\": \"From Year\",\r\n                \"description\": \"First value in year dropdown\"\r\n              }\r\n            },\r\n            {\r\n              \"key\": \"through-year\",\r\n              \"type\": \"input\",\r\n              \"defaultValue\": 2018,\r\n              \"templateOptions\": {\r\n                \"label\": \"Through Year\",\r\n                \"description\": \"Last value in year dropdown\"\r\n              }\r\n            },\r\n            {\r\n              \"key\": \"future-date\",\r\n              \"type\": \"checkbox\",\r\n              \"defaultValue\": true,\r\n              \"templateOptions\": {\r\n                \"label\": \"Enable future date\"\r\n              }\r\n            },\r\n            {\r\n              \"key\": \"message\",\r\n              \"type\": \"input\",\r\n              \"templateOptions\": {\r\n                \"label\": \"Message\",\r\n                \"description\": \"Message to be displayed at the bottom of calendar\"\r\n              }\r\n            }\r\n          ]\r\n        }\r\n      ]\r\n    }\r\n  ]\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/comments/450621131","html_url":"https://github.com/ngx-formly/ngx-formly/issues/1354#issuecomment-450621131","issue_url":"https://api.github.com/repos/ngx-formly/ngx-formly/issues/1354","id":450621131,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDYyMTEzMQ==","user":{"login":"aitboudad","id":1753742,"node_id":"MDQ6VXNlcjE3NTM3NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1753742?v=4","gravatar_id":"","url":"https://api.github.com/users/aitboudad","html_url":"https://github.com/aitboudad","followers_url":"https://api.github.com/users/aitboudad/followers","following_url":"https://api.github.com/users/aitboudad/following{/other_user}","gists_url":"https://api.github.com/users/aitboudad/gists{/gist_id}","starred_url":"https://api.github.com/users/aitboudad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitboudad/subscriptions","organizations_url":"https://api.github.com/users/aitboudad/orgs","repos_url":"https://api.github.com/users/aitboudad/repos","events_url":"https://api.github.com/users/aitboudad/events{/privacy}","received_events_url":"https://api.github.com/users/aitboudad/received_events","type":"User","site_admin":false},"created_at":"2018-12-31T08:46:43Z","updated_at":"2018-12-31T08:46:43Z","author_association":"MEMBER","body":"see https://ngx-formly.github.io/ngx-formly/examples/validation/matching-two-fields"}}
{"actor":{"display_login":"aitboudad"}}