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
  • #2192
Closed
Open
Issue created Feb 19, 2019 by Administrator@rootContributor

[BUG] multipleOf-Property not supported by codegens

Created by: SPSpunkt

Description

I have an object that uses multipleOf-Property on numbers (same workaround as described in https://github.com/OAI/OpenAPI-Specification/issues/602), but there seems to be no way to use mustache templates for customization, because the current templating process does not respect the multipleOf-Property in anyway.

openapi-generator version

I used OpenAPI generator v3.3.2 +

OpenAPI declaration file content or url
   amount:
      type: number
      multipleOf: 0.01
Suggest a fix

Making multipleOf-Hook available for templating. (helpful e.g. for creating Custom Constraints/Bean Validation in Java)

Assignee
Assign to
Time tracking