Repository navigation
Conversation
The README only described the CLI and the library, but the project also publishes a Maven plugin and a Gradle plugin to Maven Central. Add usage sections for both plugins, verified against the mojo and task sources, and link the sbt plugin maintained outside this project. Fixes OpenAPITools#339 Signed-off-by: Inf1mum <vadimlazuk5@gmail.com>
There was a problem hiding this comment.
3 issues found across 1 file
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="README.md">
<violation number="1" location="README.md:202">
P2: `allowedModelProperties` is listed in the referenced table, but the Maven goal has no parameter for it and never forwards it to `ValidatorParameters`. Users cannot configure that documented exemption through this goal; limit the sentence to exposed options or wire the parameter.</violation>
<violation number="2" location="README.md:214">
P2: The `classpath` value is single-quoted, so `${validatorVersion}` is passed literally and the documented build cannot resolve the plugin. Use a double-quoted string and define or replace `validatorVersion`.</violation>
<violation number="3" location="README.md:234">
P2: `allowedModelProperties` is listed in the referenced table, but the Gradle task has no property or setter for it and never forwards it to validation. Limit this claim to options exposed by the task or add the missing task wiring.</violation>
</file>
The Maven goal and the Gradle task do not expose the allowedModelProperties option (it is only available through the options file of the CLI), so the README now states that explicitly instead of implying every table option is wired. The Gradle classpath snippet switches to a double-quoted string so the version placeholder is interpolated once defined, with a note on how to provide it. Signed-off-by: Inf1mum <vadimlazuk5@gmail.com>
Author
|
Good catches — both addressed on the branch: the Gradle classpath snippet now uses a double-quoted string so the version placeholder interpolates once the property is defined (with a note on how to provide it, matching the Maven |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #339
The README only described the CLI and the library, so the Maven and Gradle plugins that the project publishes to Maven Central were invisible to anyone landing on the repo page.
This adds:
validategoal (bound to thevalidatephase by default), direct invocation from the command line, and a pointer to the existing options tableopenAPIStyleValidatortask, and a buildscript-based setup — the plugin is on Maven Central but not the Gradle Plugin Portal, so the usualplugins {}block alone will not resolve itEvery snippet was checked against the current plugin sources: the mojo's
validategoal andinputFileparameter, and the task name/configuration used by the gradle plugin's own functional test.Summary by cubic
Documents the Maven and Gradle plugins in the README, which previously only described the CLI and the library. Fixes #339.
allowedModelPropertiesis not exposed by either.Written for commit 31f623d. Summary will update on new commits.