gilly/openapi/openapi

Types

pub type Components {
  Components(schemas: List(#(String, schema.Schema)))
}

Constructors

pub type Info {
  Info(
    title: String,
    version: String,
    description: option.Option(String),
  )
}

Constructors

  • Info(
      title: String,
      version: String,
      description: option.Option(String),
    )
pub type OpenAPI {
  OpenAPI(
    version: version.Version,
    info: Info,
    servers: List(Server),
    paths: List(#(String, PathItem)),
    components: option.Option(Components),
  )
}

Constructors

pub type Server {
  Server(url: String)
}

Constructors

  • Server(url: String)

Values

pub fn from_json_string(
  json_string: String,
) -> Result(OpenAPI, error.Error)
pub fn openapi_decoder() -> decode.Decoder(OpenAPI)
Search Document