I’m using JSON schema with Formly. i am trying to integrate angular material tabs group with formly and JSON schema. how to convert the following configuration to JSON schema.
fields: FormlyFieldConfig[] = [
{
type: 'tabs',
fieldGroup: [
{
props: { label: 'Personal data' },
fieldGroup: [
{
key: 'firstname',
type: 'input',
props: {
label: 'First name',
required: true,
},
},
{
key: 'age',
type: 'input',
props: {
type: 'number',
label: 'Age',
required: true,
},
},
],
},
{
props: { label: 'Destination' },
fieldGroup: [
{
key: 'country',
type: 'input',
props: {
label: 'Country',
required: true,
},
},
],
},
{
props: { label: 'Day of the trip' },
fieldGroup: [
{
key: 'day',
type: 'input',
props: {
type: 'date',
label: 'Day of the trip',
required: true,
},
},
],
},
],
},
is there a way to convert the above configuration into a JSON Schema