Skip to content

Openapi 3.1 yaml validation error #273

@Megawusl-at-work

Description

@Megawusl-at-work

Validating the current openapi 3.1 yaml throws an error "attribute components.schemas.EmbeddingResponse.items is not of type object"

This can be fixed by correcting the items attribute this part from:
EmbeddingResponse:
allOf:
- $ref: '#/components/schemas/ResponseBase'
- type: object
properties:
data:
type: array
items:
- $ref: '#/components/schemas/EmbeddingResponseData'
required:
- id
- object
- data
- model
- usage

To:
EmbeddingResponse:
allOf:
- $ref: '#/components/schemas/ResponseBase'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/EmbeddingResponseData'
required:
- id
- object
- data
- model
- usage

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