chore(SchemaPropertyFilter): upd deprecated fun + added tests#81
chore(SchemaPropertyFilter): upd deprecated fun + added tests#81PVinaches merged 1 commit intoKaotoIO:mainfrom
Conversation
01ec409 to
453c6a8
Compare
|
Looks like a file is missing from the commit (catalog/index.json), maybe a generated file from the build |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
📝 WalkthroughWalkthroughReplaced iteration over JSON properties in SchemaPropertyFilter to use Jackson's Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java (1)
14-19: Tighten Javadoc wording for clarity.Consider using present tense and a shorter phrasing (e.g., “Deletes properties from the schema so form construction doesn’t create extra containers such as ‘steps’.”).
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java` around lines 14 - 19, Update the Javadoc on SchemaPropertyFilter to use present tense and a shorter, clearer phrasing; replace the existing long paragraph with something like: "Deletes properties from the schema so form construction doesn’t create extra containers such as 'steps'." Ensure this comment is applied to the SchemaPropertyFilter class (or its constructor) declaration so the purpose is concise and immediately clear.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java`:
- Around line 14-19: Update the Javadoc on SchemaPropertyFilter to use present
tense and a shorter, clearer phrasing; replace the existing long paragraph with
something like: "Deletes properties from the schema so form construction doesn’t
create extra containers such as 'steps'." Ensure this comment is applied to the
SchemaPropertyFilter class (or its constructor) declaration so the purpose is
concise and immediately clear.
src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java
Outdated
Show resolved
Hide resolved
453c6a8 to
13367f6
Compare
src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java
Outdated
Show resolved
Hide resolved
added tests Apply spacing suggestion from @lordrip Co-authored-by: Ricardo M. <lordrip@gmail.com>
b0919b0 to
e416a56
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java (1)
14-19: Tighten the constructor JavaDoc for clarity.
The intent is good, but the wording is hard to parse. A shorter statement will be clearer.✍️ Suggested wording
- /** - * Deleted properties from the schema so that in the construction - * of the forms they don't influence the creation of container - * i.e. adding an extra component or extra container named steps - * as steps include inside the components and EIPs - */ + /** + * Removes schema properties so form construction does not create + * extra containers/components (e.g., an unintended "steps" container). + */🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java` around lines 14 - 19, Update the constructor JavaDoc of SchemaPropertyFilter to a concise, clearer sentence stating that certain schema properties are removed so they don't affect form construction (preventing creation of extra components or extra "steps" containers), e.g., "Remove schema properties that would otherwise introduce extra components or 'steps' containers during form construction." Edit the JavaDoc immediately above the SchemaPropertyFilter constructor to replace the existing paragraph with this tightened wording.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/main/java/io/kaoto/camelcatalog/generators/SchemaPropertyFilter.java`:
- Around line 14-19: Update the constructor JavaDoc of SchemaPropertyFilter to a
concise, clearer sentence stating that certain schema properties are removed so
they don't affect form construction (preventing creation of extra components or
extra "steps" containers), e.g., "Remove schema properties that would otherwise
introduce extra components or 'steps' containers during form construction." Edit
the JavaDoc immediately above the SchemaPropertyFilter constructor to replace
the existing paragraph with this tightened wording.
Updated deprecated
fields()and added tests forSchemaPropertyFilterfix: KaotoIO/kaoto#2968
Summary by CodeRabbit
Tests
Refactor