Atrocore version: AtroСore: 1.10.49
When adding a field to an entity, if I create the field with the name “wordName”, for example, “lastName” and mark it as a required field, then when I examine the openapi.json it does not appear in the requestBody schema for the entity method. However, it does show in the required fields list in the requestBody schema.
This seems to be related to just ending the field name with “Name” with a capital N.
Does anyone else see this issue?
Example schema:
"post": {
"tags": [
"TestEntity"
],
"summary": "Create a record of the TestEntity",
"description": "Create a record of the TestEntity",
"operationId": "createTestEntityItem",
"security": [
{
"Authorization-Token": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"modifiedById": {
"type": "string"
},
"surname": {
"type": "string"
},
"lastPerson": {
"type": "string"
},
"eggnAME": {
"type": "string"
},
"lastname": {
"type": "string"
},
"houseNum": {
"type": "string"
},
"isArchived": {
"type": "boolean"
},
"isActive": {
"type": "boolean"
}
},
"required": [
"name",
"lastName",
"surname",
"lastPerson",
"testName",
"firstName",
"surName",
"eggnAME",
"lastname",
"houseNum"
]
}
}
}
},