Implied type error when generating OpenAPI tests #251
-
I'm having some trouble trying to use tcases-api-test to generate some tests for the Pix API (a brazillian payment system). The OpenAPI specification is at https://github.com/bacen/pix-api/releases/download/2.6.3/spec.yaml. When running tcases 3.8.4 via command line wih tcases-api-test spec.yaml I get the following exception in the console
and the
Judging by the content of the error messages it looks like tcases computed the implied type of the CobRevisada:
# ...
allOf:
# ...
- $ref: "#/components/schemas/CobBase" Can you help me understand why that is and what I could do to make such specification amenable to tcases? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Your guess was close to the answer. The problem occurs in the schema for Perhaps this was intended to be
|
Beta Was this translation helpful? Give feedback.
Your guess was close to the answer. The problem occurs in the schema for
CoBase
. TheinfoAdicionais
property is defined to be typearray
but also specifies themaximum
keyword, which implies a type ofnumber
orinteger
. See below.Perhaps this was intended to be
maxItems: 50
?