Code Monkey home page Code Monkey logo

Comments (6)

dilipkrish avatar dilipkrish commented on May 14, 2024

@mchmielarz I dont believe there is an outstanding bug. Having said that this is a new feature so its possible you might have uncovered one! If you send me more details, may be yr controller signature and/or yr test case, I can see if I can help you with your problem.

In the absence of that, I'll try and see if I can reproduce a similar scenario. Basically we're trying to generate the model schema for a class that is either an parameter or a return value of a controller and that class has only one property thats an enum.

Also you should be using 0.3.3 or a later version of the library.

from springfox.

dilipkrish avatar dilipkrish commented on May 14, 2024

@mchmielarz I confirmed that this is a bug. The swagger-core api does not support json schema completely. So any models that have enums in them, have issues rendering. It is unable to read the "enum" property thats generated, as you might've already guessed :)

Thank you for reporting this issue

from springfox.

dilipkrish avatar dilipkrish commented on May 14, 2024

This fix should now be fixed in 0.3.4 or higher

from springfox.

mchmielarz avatar mchmielarz commented on May 14, 2024

Hi Dilip,

First of all THANK YOU for so quick fix! :)

I see in readme.md in 'Getting started' section that version is updated to 0.3.4. Does this mean this version is available on some maven repository? I can find in oss.sonatype.org repo version 0.3.2 only.

Cheers,
Michal

from springfox.

dilipkrish avatar dilipkrish commented on May 14, 2024

Seems like we're having some issues with sonatype. I'll look into it. Sorry for the wait.

from springfox.

dilipkrish avatar dilipkrish commented on May 14, 2024

@mchmielarz 0.3.4 should now be visible in maven central

from springfox.

Related Issues (20)

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.