Skip to main content

Module ir

Module ir 

Source
Expand description

Intermediate Representation for ReScript codegen

Transforms OpenAPI structures into a codegen-friendly IR that maps directly to ReScript constructs.

Structs§

ApiSpec
Root IR node representing the entire API
Endpoint
HTTP endpoint definition
Field
A field in a record type
Parameter
RequestBody
Response
VariantCase
A case in a variant type

Enums§

HttpMethod
ParameterLocation
RsType
ReScript type representation
TypeDef
A ReScript type definition

Functions§

lower
Lower OpenAPI spec to IR