openapi: "3.0.3"
info:
  title: "Swagger 2.0 definition for a construct table"
  version: "1.0.0"
  description: "The construct table on this page lists the Swagger 2.0 shapes and their OpenAPI 3 counterparts. The price column is a double in the legacy definition and stays a double after conversion. The tags column is a list of strings in Swagger and becomes an array in OpenAPI 3. The product id is an integer in the legacy definition, which is the type difference that changes the seed."
paths: {}
x-domain-id: "spec_legacy"
x-dialect: "postgres"
components:
  schemas:
    products:
      type: "object"
      x-primary-key: "id"
      required: ["id", "title", "tags"]
      properties:
        id:
          type: "integer"
        title:
          type: "string"
        price:
          type: "number"
          minimum: 0
          nullable: true
        tags:
          type: "string"
        created_at:
          type: "string"
          format: "date-time"
          nullable: true
