title: Where can I find TypeScript interfaces to define OpenAPI Json?
body: <p>The OpenApi specification lists a bunch of fields and values that can be set for them.  You can see the specifications <a href="https://swagger.io/specification/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I'd like to have a set of interfaces which define these specifications... I've started making one from scratch, and it looks like this so far:</p>
  
  <pre><code>// Totally incomplete
  
  
  export interface IEndpointDocs {
      path: string,
      methods: {
          get?: IMethodDocs,
          post?: IMethodDocs
      }
  }
  
  export interface IMethodDocs {
      description?: string,
      operationId?: string,
      produces?: Array&lt;
          | "application/json"
          | "application/xml"
          | "text/xml"
          | "text/html"
      &gt;,
      parameters: IMethodParameterDocs[],
  }
  
  export interface IMethodParameterDocs {
      name: string,
      in: "query" | "body" | "path",
      description?: string,
      required?: boolean,
      // really, barely started
      type?: "array",
      items: {
          type: "string"
      },
      collectionFormat: "csv"
      format: "int32"
  };
  </code></pre>
  
  <p>Surely this has already been done, so where can I find these interfaces?</p>