Skip to content
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

support for openapi/swagger #328

Merged
merged 2 commits into from
Jan 16, 2019
Merged

Conversation

lburgazzoli
Copy link
Contributor

Initial support for OpenAPI v2

Fixes #323

@@ -133,7 +133,7 @@ func (t *knativeTrait) getServiceFor(e *Environment) *serving.Service {
})

sources := make([]string, 0, len(e.Integration.Spec.Sources))
for i, s := range e.Integration.Spec.Sources {
for i, s := range e.Integration.Sources() {
envName := fmt.Sprintf("CAMEL_K_ROUTE_%03d", i)
envvar.SetVal(&environment, envName, s.Content)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can s.content be missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yes, I will fix that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicolaferraro should be fixed now

Copy link
Member

@nicolaferraro nicolaferraro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@nicolaferraro
Copy link
Member

Should you open a ticket for adding support for e.g. caching?

@lburgazzoli
Copy link
Contributor Author

yes we need also to do some magic to configure routes/ingress & so on.

will raise some new issues later on

@nicolaferraro nicolaferraro merged commit 056c04f into apache:master Jan 16, 2019
@lburgazzoli lburgazzoli deleted the github-323 branch January 16, 2019 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants