Project

General

Profile

Actions

Bug #1570

closed

API: Wrong type signature in OpenApi

Added by Eugen Hotwagner about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
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

Also available in: Atom PDF