Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 739 Bytes

CONTRIBUTING.md

File metadata and controls

9 lines (5 loc) · 739 Bytes

Contributing

go-sdk-gen relies roughly on the same architecture as high-level languages. Parsing and Lexical analysis is offloaded to kin-openapi/openapi3 that is responsible for loading and parsing the OpenAPI specs.

Loaded specs are transformed into intermediate representation that's specific to go-sdk-gen and in the final step the intermediate representation is transformed into the Golang code of the SDK.

Code generation

Code generation is handled by a combination of templates and raw string formatting in the code. Unfortunately, there's no easy way to craft AST and then write it out.