Skip to content

Commit

Permalink
Fixed feature activation for MicronautConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-jhr committed Jun 8, 2019
1 parent 97c976f commit 37a404f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ There might be various ways to declare or use a feature, so check each converter

| Feature Name | Description | [OpenApi Converter](../openapi/README.md)| [Spring Converter](../spring/README.md) | [WADL Converter](../wadl/README.md) | [RAML Converter](../raml/README.md) | [JAX-RS Converter](../jax-rs/README.md) | [Micronaut Converter](../micronaut/README.md) |
| --- | --- | --- | --- | --- | --- | --- | --- |
| QueryParameters | Name of a query parameter and whether the parameter is required or not. _Example:_ `/todos?filter=all`|_(1.0.0)_ |_(1.0.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.2.0)_ |
| PathParameters | Name of a path parameter. _Example:_ `/todos/{id}`|_(1.0.0)_ |_(1.0.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.2.0)_ |
| HeaderParameters | Name of a header parameter and whether the parameter is required or not. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.2.0)_ |
| QueryParameters | Name of a query parameter and whether the parameter is required or not. _Example:_ `/todos?filter=all`|_(1.0.0)_ |_(1.0.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.3.0)_ |
| PathParameters | Name of a path parameter. _Example:_ `/todos/{id}`|_(1.0.0)_ |_(1.0.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.3.0)_ |
| HeaderParameters | Name of a header parameter and whether the parameter is required or not. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.3.0)_ |
| MatrixParameters | Name of a matrix parameter and whether the parameter is required or not. _Example:_ `/todos;param=value` ||_(2.1.0)_ |_(2.1.0)_ ||_(2.1.0)_ ||
| Produces | Checks the supported media types of the response. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.2.0)_ |
| Consumes | Checks the supported media types of the request. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.2.0)_ |
| Produces | Checks the supported media types of the response. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.3.0)_ |
| Consumes | Checks the supported media types of the request. |_(1.1.0)_ |_(1.1.0)_ |_(1.1.0)_ |_(2.0.0)_ |_(2.1.0)_ |_(2.3.0)_ |
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package de.codecentric.hikaku.converters.micronaut

import de.codecentric.hikaku.SupportedFeatures
import de.codecentric.hikaku.SupportedFeatures.Feature
import de.codecentric.hikaku.converters.AbstractEndpointConverter
import de.codecentric.hikaku.converters.ClassLocator
import de.codecentric.hikaku.converters.EndpointConverterException
Expand All @@ -12,7 +13,13 @@ import kotlin.reflect.jvm.kotlinFunction

class MicronautConverter(private val packageName: String) : AbstractEndpointConverter() {

override val supportedFeatures = SupportedFeatures()
override val supportedFeatures = SupportedFeatures(
Feature.QueryParameters,
Feature.PathParameters,
Feature.HeaderParameters,
Feature.Produces,
Feature.Consumes
)

override fun convert(): Set<Endpoint> {
if (packageName.isBlank()) {
Expand Down

0 comments on commit 37a404f

Please sign in to comment.