Giter Club home page Giter Club logo

Comments (8)

RobWin avatar RobWin commented on June 14, 2024

The Format should be shown if it is included in the Swagger Model generated by swagger-parser. If the Format is missing, it might be a missing feature in the parser. Please open an issue in the other project.

from swagger2markup.

ejain avatar ejain commented on June 14, 2024

The "format" is present in the Swagger spec passed to Swagger2MarkupConverter.fromString.

from swagger2markup.

RobWin avatar RobWin commented on June 14, 2024

Also in the Java Swagger Model object created by the swagger-parser in Line 116?
Unfortunately I can't debug it in the next days, because Iam still on parental leave. I will have a look at it as soon as I can.

from swagger2markup.

RobWin avatar RobWin commented on June 14, 2024

I created an example and debugged it:

  "pictures": {
      "type": "array",
      "items": {
              "type": "string",
              "format": "byte"
       }
   }

Swagger2Markup uses the official swagger-parser to parse the JSON into a Java Model representation. But the format is null in the pictures array. Seems to be a missing feature in the swagger-parser.

image

from swagger2markup.

RobWin avatar RobWin commented on June 14, 2024

Thx for creating the issue.

from swagger2markup.

fehguy avatar fehguy commented on June 14, 2024

Hi, assuming the parameter in example #38 (comment) is of type body, this is verified working:

swagger-api/swagger-parser@8162a82

from swagger2markup.

RobWin avatar RobWin commented on June 14, 2024

I tested it as a property of a model definition not as the body schema directly.

from swagger2markup.

RobWin avatar RobWin commented on June 14, 2024

Which one do you mean @ejain? Body parameter or property of model definition?

from swagger2markup.

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.