Giter Site home page Giter Site logo

Custom schema titles about swagger-ui HOT 10 CLOSED

jensoleg avatar jensoleg commented on July 2, 2024
Custom schema titles

from swagger-ui.

Comments (10)

jensoleg avatar jensoleg commented on July 2, 2024

Yes I've noticed there is a problem with BODY schemas and arrays, but haven't tried out with title properties. Can you provide an example swagger file and point out what you want ?

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

Oh okay. I tried debugging in swagger-js for a long time and couldn't figure it out.

I added them today to change how it would show the schema model names. I have an example below if it helps:
https://api.monscierge.com/swagger/docs/v1

I appreciate all of your help. I'm really excited to use this. 👍 😄

from swagger-ui.

jensoleg avatar jensoleg commented on July 2, 2024

swagger-js is a tricky beast 😄
Try to update the swagger-client from my github repo - npm update swagger-client and see if this is better ?

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

Yeah it did improve some, though there was a few other spots that were still referencing the non schema title like in the response schema.

from swagger-ui.

jensoleg avatar jensoleg commented on July 2, 2024

I have merged your pull requests and updated the client libraries in swagger-js.

Getting better and better - thanks 😄

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

Thanks. Yeah it really is! 👍

from swagger-ui.

jensoleg avatar jensoleg commented on July 2, 2024

It looks nice with the Concierge API but when I test the Swagger Pet Store Api there are some problems with undefined titles.

swagger explorer 1

Any idea ?

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

Oops was it the last change? I will check.

from swagger-ui.

jensoleg avatar jensoleg commented on July 2, 2024

Really don't know but I guess it could be. Didn't notice it before now. You can try to roll the change back in the swagger-ui.js file in the dist folder and check if that is the problem.

from swagger-ui.

dmyers avatar dmyers commented on July 2, 2024

Okay I think I figured it out. There is a value that is passing not null, but is also undefined.

from swagger-ui.

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.