Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate Go gin servers from OpenAPI specs

License

NotificationsYou must be signed in to change notification settings

SasSwart/can

Repository files navigation

The gin templates that are available in theexisting openapi generatorrequire in place modification. This does not suit our workflow. We would like to be able to regenerate our API interfacewithout having to patch in our own code every time. gRPC generates code that illustrates how to generate code that canbe used without modification.

This repository is intended to apply the pattern used by gRPC to Gin for rest services.

Usage

Download the latestrelease archive for your platform and extract it.Copy theexample config file to a convenient location and modify it to your needs.

Run the can command as follows:/path/to/can --configFile=/path/to/can.yml

Design

Seedesign.md

Roadmap

TODOs

  • Look into yaml.Readpath
  • Look into unmarshalling composed types
  • Implement e2e testing of generated code (1.0)
  • (Alex) test resolveRefs against nested refs and debug - use hackday branch for reference
  • Finish unit testing
  • Spec Compliant Templating

Long Term Goals

  • Unmarshal refs into node container
  • Full Open Api spec 3.x coverage
  • Make full use of Architechtural Decision Records - keep in main branch
  • Robust CI pipeline
  • Implement style guide for development - possible adapted from pre-existing industry-used guides

About

Generate Go gin servers from OpenAPI specs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp