guardrail-dev / guardrail-dev/guardrail

sharing definitions between APIs

Open
#216 4 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Scala
Stars
541
Forks
138
PR merge metrics
No merged PRs in 30d

Description

What's the recommended way to have two different APIs share some data definitions with Guardrail?

Swagger allows extracting definitions into their own files and referencing them with `$ref`. For multiple swagger specs (multiple APIs) to share the same definitions file, would it be possible to run Guardrail 3 times -- once to generate just definitions, then once per swagger spec to generate the server code, but skipping codegen for definitions? Or maybe generating definitions twice but in the same namespace?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.