-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REQ] Spec: allow including partial specs #375
Comments
A few questions here.
|
|
What kind of request is this?
New feature
What is your request or suggestion?
Sometimes there's a lot of shared things between specs, especially if multiple versions of a package need to be supported.
This can end up with a lot of duplication and is potentially prone to errors due to out-of-sync specs.
I think it could be possible at every object to allow something like an
@include
field to pull in a spec using anysource
type, which would be pulled in, unmarshalled, and merged into the main spec. The included type must match the type where its being included in.e.g.
Multiple @includes can be used here and merged together with the base.
Are you willing to submit PRs to contribute to this feature request?
The text was updated successfully, but these errors were encountered: