Git Product home page Git Product logo

openapi-processor-micronaut's Introduction

openapi-processor site

antora based openapi-processor site

publishing

see .github/wokflows/publish.yml

build & run locally

see antora/README.adoc

openapi-processor-micronaut's People

Contributors

dependabot[bot] avatar hauner avatar tucos avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tucos

openapi-processor-micronaut's Issues

Missing Introspected annotation for bean validation

Hi,

Small note: this issue is not important to me; I can stick with spring or add the hibernate validator for the current project.

Micronaut requires an Introspected annotation on POJOs that need validation (ref micronaut docs). Currently this annotation is missing from POJOs generated by openapi-processor-micronaut.

I've created a small project that demonstrates the problematic behavior. It's a bare micronaut project with openapi-processor added. The API has a single endpoint that requires a body with a single required property. The one and only testcase EndpointControllerTest calls the endpoint with that parameter missing.

This test fails with the following error: Cannot validate com.example.api.model.EndpointBody. No bean introspection present. Please add @Introspected to the class and ensure Micronaut annotation processing is enabled. After adding the annotation to the generated EndpointBody the test succeeds. Adding the hibernate validator to the project dependencies will also make it succeed.

I've added an example integration test in this commit: Tucos/openapi-processor-micronaut@ee1616b.

mapping does not include "consumes"

the mapping annotation should have a consumes property based on the request body. The MappingAnnotationWriter does have code for this but it does not seem to work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.