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

Fix #706 Improve RuntimeCatalogConfig docs #1009

Merged
merged 1 commit into from Apr 4, 2020
Merged

Conversation

ppalaga
Copy link
Contributor

@ppalaga ppalaga commented Apr 1, 2020

Fix #706

@@ -290,41 +290,45 @@
@ConfigGroup
public static class RuntimeCatalogConfig {
/**
* Used to control the resolution of components catalog info.
* Whether the {@code json} resources under {@code META-INF/services/org/apache/camel/component} should be
Copy link
Contributor

Choose a reason for hiding this comment

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

the json is not located at META-INF/services/org/apache/camel/component but the catalog may uses service files to determine the class name of the component as the json is usually located in the same package as the component class.

Same for the other descriptions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I have changed the text in 9affaa1 . Could you please re-review?

@@ -28,7 +28,8 @@ public CamelRuntimeCatalog(CamelConfig.RuntimeCatalogConfig config) {
@Override
public String modelJSonSchema(String name) {
if (!config.models) {
return null;
throw new RuntimeException(
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to check if throwing an exception is the right thing, I do not remember if there is any assumption in the code path that invokes this method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am a troll, I have put it there to see who and how is actually using it :) I have fixed the tests in fc0bdf6. Are you using it in Camel K?

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.

Improve RuntimeCatalogConfig docs
3 participants