Схема JSON, созданная spring-data-rest, не содержит определения свойств типа «объект».
Я пытаюсь использовать сгенерированную схему для автоматического создания формы с использованием uniforms-material / AutoForm. Для правильного создания формы необходимо определение этих свойств объекта.
curl localhost:8080/api/profile/agentContactRecords -H
"Accept:application/schema+json"
Я ожидаю, что результат запроса выше схемы будет
...
"Agent Business Lines" : {
"title" : "Agent business lines",
"type" : "array",
"items" : {
"type" : "object",
"properties": {
"Business Line": {
"type": "string",
"title": "The Business line Schema"
},
"Agent Name": {
"type": "string",
"title": "The Agent name Schema"
}
}
}
},
"Agent" : {
"title" : "Agent",
"type" : "object",
"properties": {
"Agent Number": {
"type": "string",
"title": "The Agent number Schema"
}
}
},
...
Но я получаю следующее
...
"Agent Business Lines" : {
"title" : "Agent business lines",
"readOnly" : false,
"type" : "array",
"items" : {
"type" : "object"
}
},
"Agent" : {
"title" : "Agent",
"readOnly" : false,
"type" : "object"
},
...