Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #335
Closed
Open
Issue created Jun 17, 2018 by Jim Schubert@jimschubertContributor

Add validate --recommend option to maven and gradle plugin options.

Description

In #292, I implemented a --recommend option for the CLI's validate command. We'll want to add a similar option to the Maven and Gradle plugins.

I'm thinking that we could create a validator result object (e.g. ValidationSummary, with properties exposing a set of errors and a set of warnings) and a validator utility (e.g. SpecificationValidator), in which we encapsulate the logic for returning errors/warnings. The CLI command (and probably Maven and Gradle plugins) output a stringified result of errors and warnings, which would be a static utility method on the validator utility type. This would remove any inconsistencies between the tools and would allow other tools (like my IntelliJ plugin) consider "errors" the same as we consider them in openapi-generator; right now it's the same as swagger-parser, but this may not always be the case.

openapi-generator version

3.0.2+

Related issues/PRs
  • #229
Assignee
Assign to
Time tracking