Clone Tools
  • last updated 17 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
[CAMEL-11807] Upgrade tooling to junit5

  1. … 27 more files in changeset.
[CAMEL-15058] Fix failing rest DSL tests (#3828)

    • -1
    • +2
    ./resources/SpringBootRestController.txt
  1. … 1 more file in changeset.
CAMEL-14180: Fix Checkstyle issues

Seems that previous versions of Checkstyle had few issues with checking

import sort/grouping. So I've run impsort Maven plugin:

mvn net.revelc.code:impsort-maven-plugin:sort -Dimpsort.groups=java,javax,org.w3c,org.xml,junit -Dimpsort.removeUnused=true -Dimpsort.staticAfter=true

To sort all the imports according to the Checkstyle rule.

Few remaining issues around indentation and unnecessary parentheses I

fixed manually.

  1. … 2770 more files in changeset.
CAMEL-14180: Fix Checkstyle issues

Seems that previous versions of Checkstyle had few issues with checking

import sort/grouping. So I've run impsort Maven plugin:

mvn net.revelc.code:impsort-maven-plugin:sort -Dimpsort.groups=java,javax,org.w3c,org.xml,junit -Dimpsort.removeUnused=true -Dimpsort.staticAfter=true

To sort all the imports according to the Checkstyle rule.

Few remaining issues around indentation and unnecessary parentheses I

fixed manually.

  1. … 2762 more files in changeset.
Fixed CS for Swagger REST DSL Generator

  1. … 1 more file in changeset.
CAMEL-13893: use XML API to modify REST XML DSL

This replaces the string manipulation of XML in Swagger REST DSL XML

generator with using XML API to perform the needed manipulation.

  1. … 1 more file in changeset.
Make maven clean install pass on JDK 11

  1. … 65 more files in changeset.
CAMEL-12893: OpenAPI REST DSL generator basePat...

...h handling

Now `basePath` from the OpenAPI specification is considered and added

as a part of the REST DSL definition.

    • -1
    • +1
    ./resources/SwaggerPetstoreWithRestComponent.txt
    • -1
    • +1
    ./resources/SwaggerPetstoreWithRestComponentXml.txt
  1. … 4 more files in changeset.
CAMEL-12841: camel-restdsl-swagger:generate - Special case for Spring Boot with servlet component to generate CamelRestController support class to allow using root context-path and spring boot health check/actuators at the same time.

    • -0
    • +24
    ./resources/SpringBootRestController.txt
    • -1
    • +1
    ./resources/SwaggerPetstoreWithRestComponent.txt
    • -1
    • +1
    ./resources/SwaggerPetstoreWithRestComponentXml.txt
  1. … 7 more files in changeset.
CAMEL-12841: camel-restdsl-swagger:generate - Add restConfiguration with common defaults

    • -0
    • +294
    ./resources/SwaggerPetstoreWithRestComponent.txt
    • -0
    • +101
    ./resources/SwaggerPetstoreWithRestComponentXml.txt
  1. … 8 more files in changeset.
CAMEL-12805: camel-restdsl-swagger-plugin doesn't convert integer default value to string

  1. … 2 more files in changeset.
CAMEL-12805: camel-restdsl-swagger-plugin doesn't convert integer default value to string

  1. … 2 more files in changeset.
CAMEL-12805: camel-restdsl-swagger-plugin doesn't convert integer default value to string

  1. … 2 more files in changeset.
Fixing failing RestDslXmlGeneratorTest on JDK-9

CAMEL-12283: camel-restdsl-swagger-plugin - Allow to filter operations

    • -0
    • +78
    ./resources/MyRestRouteFilter.txt
    • -20
    • +20
    ./resources/SwaggerPetstoreXml.txt
  1. … 12 more files in changeset.
CAMEL-12266: Add log4j logging

    • -0
    • +28
    ./resources/log4j2.properties
  1. … 1 more file in changeset.
CAMEL-12266: Maven plugin for restdsl can now generate xml.

  1. … 4 more files in changeset.
CAMEL-12266: Maven plugin for restdsl can now generate xml.

    • -0
    • +99
    ./resources/SwaggerPetstoreXml.txt
  1. … 10 more files in changeset.
CAMEL-11175 REST DSL Swagger generator default ...

...generated class/package names

This refines default class name and package name generation.

  1. … 1 more file in changeset.
CAMEL-11163 Add @Generated annotation in REST D...

...SL Swagger generated code

This makes the `date` annotation member of `@Generated` annotation

optional and its generation turned off by default.

  1. … 1 more file in changeset.
CAMEL-11163 Add @Generated annotation in REST D...

SL Swagger generated code

Adds the `@Generated` annotation to the generated source code of

`RouteBuilder` implementations. This way IDEs and source code analysis

tools know that the code was generated.

  1. … 1 more file in changeset.
CAMEL-11006 Auto generate REST DSL for Camel fr...

...om Swagger2.0/OAI specification

Refactored `directRouteGenerator` to `destinationGenerator` and made

`RestDslDefinitionGenerator` public -- otherwise it could not be used.

  1. … 3 more files in changeset.
CAMEL-11006 Auto generate REST DSL for Camel fr...

...om Swagger2.0/OAI specification

This is initial work on REST DSL code|object generation from Swagger

specification.

Entry point to the implementation is RestDslGenerator::to...(...)

methods. Several options are provided for generating source files:

- for code generation in Maven plugin ones accepting Path or Appendable

should be suitable

- for generation in Annotation Processing ones accepting Filer are more

appropriate

- and for generation of the object graph in runtime the one accepting

CamelContext is provided

Both the source code and object graph implementation depend on a

CodeEmitter implementation: one relying on reflection

(RestDefinitionEmitter) is used to generate the object graph, and the

one generating the source code for the RouteBuilder::configure method

body using the javapoet library (MethodBodySourceCodeEmitter).

CodeEmitter is driven by two visitor pattern implementations one

for processing path elements of the specification (RestDslPathGenerator)

and one for processing operation elements of he specification

(RestDslOperationGenerator). Both can be further adapted to support more

of the Swagger specification. I believe they map the currently used /

relevant parts of the Swagger specification covered by REST DSL.

Example of usage:

RestDslGenerator.toPath(swagger)

.withClassName("MyRestRoute")

.withPackageName("com.example")

.withIndent("\t")

.generate(Paths.get("src", "generated"));

    • -0
    • +281
    ./resources/MyRestRoute.txt
    • -0
    • +281
    ./resources/SwaggerPetstore.txt
  1. … 15 more files in changeset.