Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 858 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 858 Bytes

yaml2uml

Convert Swagger YAML files (definitions part) to an XML file that can be opened on https://www.draw.io/

Head over to https://sefo.github.io/yaml2uml/ and try it out.

Supports swagger 2.0 and OpenApi 3 models (definitions vs components.schemas)

Supports array refs

  TestArray:
    type: "array"
    items:
      $ref: "#/definitions/Tag"

Supports allOf

  Dog:
    allOf:
      - $ref: '#/components/schemas/Pet'
      - type: object
        properties:
          bark:
            type: boolean
          breed:
            type: string
            enum: [Dingo, Husky, Retriever, Shepherd]

Current TODOS:

  • Fix position problem
    • Class diagrams are not aligned correctly on the grid at the moment
  • Add relationships between classes
    • Parsing category: $ref: "#/definitions/Category"