Open fabienpe opened 2 months ago
The output is defined in api 2.4 documentation provided from Thomas. The rational of this is to minimize the amount of types with in the code base. If each endpoint had to have its own (complex) type, changes will be harder to achieve.
OK. That's a pity because if you use a tool such as https://github.com/OpenAPITools/openapi-generator to convert the JSON provided by the Swagger of the DC4EU API, to generate client code, then it only partly works because the behaviour of the API does not exactly match the JSON.
I have come to understand that, this needs to be addressed for sure. Many is using some generator to generate client code. Will fix this.
On version: 25298ad1941b83f0affea70d43a976c2744b404f
apiv1.GetDocumentCollectIDReply
is defined as"$ref": "#/definitions/model.Upload"
, which itself contains ameta
property defined in "$ref": "#/definitions/model.MetaData". But
model.MetaDatarequires
date_of_birth,
first_nameand
last_name` which are not provided in the actual response.In other words, while the announced output is:
I just get: