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"}
}
}
}
},
Updated by Bernhard Koschiček-Krombholz about 3 years ago
- Status changed from New to In Progress
Updated by Bernhard Koschiček-Krombholz about 3 years ago
- Status changed from In Progress to Closed
Thank you very much for reporting. I changed it:
/api/0.2/classes/:
get:
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':
content:
application/ld+json:
schema:
type: array
items:
$ref: '#/components/schemas/ClassMappingModel'
Example output is:
[ { "crmClass": "string", "en": "string", "icon": "string", "systemClass": "string", "view": "string" } ]
Updated by Alexander Watzinger about 3 years ago
- Found in version changed from to 6.4.1
Updated by Alexander Watzinger about 3 years ago
- Subject changed from Wrong type signature in OpenApi to API: Wrong type signature in OpenApi
Updated by Bernhard Koschiček-Krombholz about 3 years ago
- Target version changed from 208 to 6.5.0
Actions