Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[CAMEL-15058] Fix rest DSL controller generation when reguestUri starts with slash

    • -1
    • +2
    ./generator/openapi/SpringBootProjectSourceCodeGenerator.java
  1. … 1 more file in changeset.
CAMEL-14697: consider parameters from path

We need to include any parameters that are defined on the path as well

as the parameters that are defined on the operation.

    • -1
    • +7
    ./generator/openapi/OperationVisitor.java
  1. … 1 more file in changeset.
CAMEL-14691: dereference parameters

If parameters are references then we need to dereference them.

    • -16
    • +22
    ./generator/openapi/OperationVisitor.java
  1. … 1 more file in changeset.
CAMEL-14691: Code cleanup

- makes sure that autocloseable resources are used with

try-with-resources

- parameter names reflect their use

- resources are not loaded outside of the `src` directory

- methods that can be static are declared as static

- methods are not named `get...`

- referenced values are used instead of fetched again (e.g. repeated

getServers())

- URL class is not used

- when possible early exits are taken

- doesn't rely on non-standard base path resolution from `basePath`

variable (used in example, no bearing on the base path)

- removes trailing whitespace

- use final where possible

- corrects AssertJ usage

- adds tests for refactored code

    • -2
    • +2
    ./generator/openapi/FilerGenerator.java
    • -32
    • +32
    ./generator/openapi/MethodBodySourceCodeEmitter.java
    • -4
    • +5
    ./generator/openapi/OperationFilter.java
    • -30
    • +29
    ./generator/openapi/OperationVisitor.java
    • -2
    • +2
    ./generator/openapi/PathGenerator.java
    • -20
    • +21
    ./generator/openapi/PathVisitor.java
    • -4
    • +4
    ./generator/openapi/RestDslDefinitionGenerator.java
    • -113
    • +117
    ./generator/openapi/RestDslGenerator.java
    • -17
    • +16
    ./generator/openapi/RestDslSourceCodeGenerator.java
    • -24
    • +24
    ./generator/openapi/SpringBootProjectSourceCodeGenerator.java
  1. … 12 more files in changeset.
CS: Fix all imports

    • -1
    • +0
    ./generator/openapi/FilerGenerator.java
    • -1
    • +1
    ./generator/openapi/OperationVisitor.java
    • -1
    • +0
    ./generator/openapi/PathGenerator.java
    • -1
    • +0
    ./generator/openapi/RestDslDefinitionGenerator.java
    • -2
    • +0
    ./generator/openapi/RestDslGenerator.java
  1. … 413 more files in changeset.
camel-openapi-rest-dsl-generator: fixed switch/cases indentation see CAMEL-14540

    • -26
    • +26
    ./generator/openapi/MethodBodySourceCodeEmitter.java
chore: fixed sourcechk violations.

  1. … 15 more files in changeset.
CAMEL-14484: Make XML dumper its own model outside camel-core-engine

  1. … 21 more files in changeset.
[CAMEL-14447]OpenApi V3: ensure all variables are parsed for Server Url

    • -2
    • +18
    ./generator/openapi/RestDslGenerator.java
  1. … 3 more files in changeset.
make checkstyle happy

    • -1
    • +0
    ./generator/openapi/RestDslGenerator.java
  1. … 2 more files in changeset.
[CAMEL-12619]add server variables support in OpenAPI 3.x

    • -8
    • +17
    ./generator/openapi/RestDslGenerator.java
  1. … 5 more files in changeset.
[CAMEL-14315]add openapi-rest-dsl-generator

    • -0
    • +38
    ./generator/openapi/AppendableGenerator.java
    • -0
    • +25
    ./generator/openapi/CodeEmitter.java
    • -0
    • +26
    ./generator/openapi/DestinationGenerator.java
    • -0
    • +38
    ./generator/openapi/DirectToOperationId.java
    • -0
    • +40
    ./generator/openapi/FilerGenerator.java
    • -0
    • +166
    ./generator/openapi/MethodBodySourceCodeEmitter.java
    • -0
    • +45
    ./generator/openapi/OperationFilter.java
    • -0
    • +239
    ./generator/openapi/OperationVisitor.java
    • -0
    • +39
    ./generator/openapi/PathGenerator.java
    • -0
    • +98
    ./generator/openapi/PathVisitor.java
    • -0
    • +99
    ./generator/openapi/RestDefinitionEmitter.java
    • -0
    • +40
    ./generator/openapi/RestDslDefinitionGenerator.java
    • -0
    • +203
    ./generator/openapi/RestDslGenerator.java
    • -0
    • +207
    ./generator/openapi/RestDslSourceCodeGenerator.java
    • -0
    • +114
    ./generator/openapi/RestDslXmlGenerator.java
  1. … 30 more files in changeset.