Skip to content

Implied type error when generating OpenAPI tests #251

Answered by kerrykimbrough
tarsiswt asked this question in Q&A
Discussion options

You must be logged in to vote

Your guess was close to the answer. The problem occurs in the schema for CoBase. The infoAdicionais property is defined to be type array but also specifies the maximum keyword, which implies a type of number or integer. See below.

Perhaps this was intended to be maxItems: 50?

...
 4647          infoAdicionais:
 4648            type: array
 4649            title: Informações adicionais
 4650            description: >-
 4651              Cada respectiva informação adicional contida na lista (nome e valor)
 4652              deve ser apresentada ao pagador.
 4653            maximum: 50
 4654            items:
 4655              type: object
...

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tarsiswt
Comment options

@kerrykimbrough
Comment options

Answer selected by tarsiswt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants