Created
September 27, 2021 09:09
-
-
Save vigikaran/c960d829e328a88a97ba3d04b0b32b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
validation : [], | |
uischema: { | |
port: { | |
"ui:widget": "radio", | |
}, | |
activation_date: { | |
"ui:widget": "date", | |
}, | |
}, | |
schema:{ | |
type: "object", | |
properties: { | |
port: { | |
title: "Connection Type", | |
type: "boolean", | |
default: true, | |
enumNames: ["Port Existing Number", "New Number"], | |
}, | |
}, | |
dependencies: { | |
port: { | |
oneOf: [ | |
{ | |
properties: { | |
port: { | |
enum: [true], | |
}, | |
porting_to: { | |
title: "Number you wish to Port", | |
type: "string", | |
}, | |
pac_code: { | |
title: "PAC Code", | |
type: "string", | |
}, | |
activation_date: { | |
title: "Activation Date", | |
type: "string", | |
}, | |
}, | |
required: ["porting_to", "pac_code"], | |
}, | |
], | |
}, | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment