GithubHelp home page GithubHelp logo

Comments (6)

kongchen avatar kongchen commented on May 20, 2024

Here's the code of com.wordnik.swagger.model.ModelProperty :


case class ModelProperty(
  `type`: String,
  qualifiedType: String,
  position: Int = 0,
  required: Boolean = false,
  description: Option[String] = None,
  allowableValues: AllowableValues = AnyAllowableValues,
  items: Option[ModelRef] = None)

You can see there's no notes there.
For notes in the plugin, it must be a legacy problem when I upgrade from swagger 1.1 to 1.2, just ignore it :)

from swagger-maven-plugin.

dkirrane avatar dkirrane commented on May 20, 2024

Ok, I'm using

        <dependency>
            <groupId>com.wordnik</groupId>
            <artifactId>swagger-annotations</artifactId>
            <version>1.3.2</version>
        </dependency>

Looks like com.wordnik.swagger.model.ModelProperty was replaced with com.wordnik.swagger.annotations.ApiModelProperty which has a notes field

from swagger-maven-plugin.

kongchen avatar kongchen commented on May 20, 2024

The reader: com.wordnik.swagger.jaxrs.JaxrsApiReader reads com.wordnik.swagger.annotations.ApiModelProperty to com.wordnik.swagger.model.ModelProperty, and I use ModelProperty to generate your document. I think it's an issue of com.wordnik.swagger.jaxrs.JaxrsApiReader

from swagger-maven-plugin.

fehguy avatar fehguy commented on May 20, 2024

Hi, please open an issue in swagger-core and put in a sample model.

from swagger-maven-plugin.

kongchen avatar kongchen commented on May 20, 2024

Hi @fehguy , please see swagger-api/swagger-core#508

from swagger-maven-plugin.

kongchen avatar kongchen commented on May 20, 2024

Close this issue for the reason of swagger-api/swagger-core#508 (comment)

from swagger-maven-plugin.

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.