Actions
Bug #1570
closedAPI: Wrong type signature in OpenApi
Start date:
2021-09-09
Estimated time:
Found in version:
Description
Methods returning arrays are typed as single object and not as an array of that object. For example:
"summary": "Class Mapping endpoint\r",
"description": "Provides a list of all available system classes, their CIDOC CRM mapping, which view they belong, which icon is used and the englisch name",
"responses": {
"200": {
"description": "List of all available system classes",
"content": {
"application/ld+json": {
"schema": {
"$ref": "#/components/schemas/ClassMappingModel"
}
}
}
},
should be:
"summary": "Class Mapping endpoint\r",
"description": "Provides a list of all available system classes, their CIDOC CRM mapping, which view they belong, which icon is used and the englisch name",
"responses": {
"200": {
"description": "List of all available system classes",
"content": {
"application/ld+json": {
"schema": {
"type" :"array",
"items": {"$ref": "#/components/schemas/ClassMappingModel"}
}
}
}
},
Actions