You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swagger-mock seems to have Problems with return values based on components/models which inherit from parents deeper than 1 level, e.g.:
openapi: 3.0.0info:
title: REST-APIcomponents:
schemas:
AcquisitionRequest:
description: Acquisition requestallOf:
- $ref: "#/components/schemas/Entity"
- properties:
threshold:
description: > Invoice threshold in Euro. The threshold is defined per customer (doctor identified by the doctors identifier) as available in the PVS-Backendtype: numberformat: floatisGreaterEqualThreshold:
description: > Indicates if value is greater equal the threshold (>=).type: booleanvalue:
description: > Value in Euro the acquisition is requested for. type: numberformat: floatstatus:
description: Processing statustype: stringenum:
- collected
- authorized
- open
- accepted
- rejected
- postalwrongdefault: openrequired:
- statusAcquisitionRequest_Read:
description: > Read (GET) representation of acquisition request, taking the mandatory isGreaterEqualThreshold attribute into accountallOf:
- $ref: "#/components/schemas/AcquisitionRequest"required:
- isGreaterEqualThresholdpaths:
/acquisition_requests:
get:
summary: List of acquisition requestsresponses:
"200":
description: List of acquisition requestscontent:
application/json:
schema:
type: arrayuniqueItems: trueitems:
$ref: "#/components/schemas/AcquisitionRequest_Read""204":
description: Paging limit reached"401":
description: Unauthorized
Requesting the /acquisition_request with GET always/just returns:
[
{}
]
The text was updated successfully, but these errors were encountered:
Sadly, this problem cannot be fixed quickly. We are working on the next version of the library. So I think the problem with deep inheritance should be considered as a limitation of v0.1.
swagger-mock seems to have Problems with return values based on components/models which inherit from parents deeper than 1 level, e.g.:
Requesting the /acquisition_request with GET always/just returns:
The text was updated successfully, but these errors were encountered: