allOff with required returning Record<string, never> · Issue #1474 · openapi-ts/openapi-typescript · GitHub
Skip to content

allOff with required returning Record<string, never> #1474

Description

@leppaott

Similar question: OAI/OpenAPI-Specification#1870

allOf:
        - $ref: '#/components/schemas/Info'
        - type: object
          required:
            - name
            - locationUuid

This one returns as type Info & Record<string, never>

We still can't migrate from 5.4.1 version where this worked fine... All validation on fastify/Ajv work fine with this although I don't know whether it's strictly legal syntax but surely something the openAPI needs because references are useless without allowing overriding required values for request bodys versus responses etc...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions