Skip to content

OpenAPI specification: Wrong type for msg in ValidationError #212

@laundy

Description

@laundy

In your OpenAPI specification you specify msg in a ValidationError as string:

msg:
type: string
title: Message

However, testing a lot of invalid requests to your https://api.mistral.ai/v1/chat/completions endpoint shows that msg can be also (or is always?) an array:

"message": {
  "detail": [
    {
      "type": "float_type",
      "loc": [
        "body",
        "top_p"
      ],
      "msg": "Input should be a valid number",
      "input": null
    }
  ]
}, ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions