swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Distributed files assembling

Open artifishional opened this issue 4 years ago • 1 comments

Does this library support distributed files assembling? Here is how I try to assemble it

// index.yml
openapi: 3.0.3
info:
  title: azaza
  version: DEV-SNAPSHOT
  description: OpenAPI
paths:
  /ics-contracts:
    get:
      operationId: getContractsList
      summary: desc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: model/icsContract.yml

// model/icsContract.yml
type: object
title: Контракт
properties:
  uuid:
    $ref: ../../common/model/uuid.yml
    title: UUID
  number:
    type: string
    title: Num
    example: 12

I launch it from the file index.yml with curl, for some reason it doesnt get the content of model/icsContract.yml file

artifishional avatar Aug 03 '21 18:08 artifishional

This is a feature I would also love to have. Right now my swagger files are littered with TODOs indicating identical schemas.

brookjordan avatar Aug 05 '21 06:08 brookjordan