KrzysztofCwalina / openai-in-typespec

OpenAI's service described using TypeSpec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A conversion of the OpenAI OpenAPI to TypeSpec

Snapshot: https://raw.githubusercontent.com/openai/openai-openapi/b648b7823135e6fa5148ac9a303c16fdad050da6/openapi.yaml

There are some deltas:

Changes to API Semantics

  • Many things are missing defaults (mostly due to bug where we can't set null defaults)
  • Error responses have been added.
  • Where known, the object property's type is narrowed from string to the constant value it will always be

Changes to API metadata or OpenAPI format

  • Much of the x-oaiMeta entries have not been added.
  • In some cases, new schemas needed to be defined in order to be defined in TypeSpec (e.g. because the constraints could not be added to a model property with a heterogeneous type)
  • There is presently no way to set title

About

OpenAI's service described using TypeSpec

License:MIT License


Languages

Language:C# 99.2%Language:PowerShell 0.8%