Giter Club home page Giter Club logo

Comments (13)

rjstanford avatar rjstanford commented on July 17, 2024 1

Maybe a week or two ago; I'll update and see if I can come up with some good examples.

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

Hi @rjstanford thanks for raising this! Can I ask a couple of questions?

  • Which version are you using (as I've recently updated the openapi-sampler dependency)?
  • Is it the schema property table or the example which displays nothing, or both?
  • Do you have a small sample I can test with (e.g. in a gist)? No matter if not.

Dropdowns for discriminator might be tricky, as we create completely static markdown, but possibly something is doable with html details and summary tags... Though this would depend on browser support.

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

The v3.0 beta of widdershins has much better support for oneOf, anyOf, allOf and not (although I'm still debating the best visual way of rendering them). Are you able to test v3, either from a github clone, or by installing widdershins@beta ?

from widdershins.

rjstanford avatar rjstanford commented on July 17, 2024

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

Many thanks.

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

[email protected] released with a couple of new options and fixes.

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

Widdershins v3.0.0 has just been released with improved oneOf, anyOf, allOf, not support.

from widdershins.

slservice avatar slservice commented on July 17, 2024

I'm experiencing the same problem for asyncapi. After using oneOf or anyOf, the message headers and payload (including the examples) are no longer visible

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

Thanks, will take a look.

from widdershins.

rncry avatar rncry commented on July 17, 2024

This is still broken in 4.0.1

from widdershins.

MikeRalphson avatar MikeRalphson commented on July 17, 2024

Does anyone have an example they can share which shows the problem?

from widdershins.

taind772 avatar taind772 commented on July 17, 2024

Does anyone have an example they can share which shows the problem?

openapi: 3.0.0

info:
  title: Sample of allOf 's Bug
  version: 0.1.0

components:
  schemas:
    Record:
      properties:
        id:
          type: integer
          minimum: 1
          example: 1
        created_at:
          type: string
          format: date-time
    Hello:
      properties:
        message:
          type: string
          description: Hello world

paths:
  /hello:
    get:
      summary: Hello world
      responses:
        200:
          description: Ok
          content:
            application/json:
              schema:
                allOf:
                  - $ref: "#/components/schemas/Record"
                  - $ref: "#/components/schemas/Hello"

config:

{
    "language_tabs": [{"shell" : "CURL"}],
    "language_clients": [{"shell" : "CURL"}]
}

Output look like:


GET /hello

Hello world

Example responses

200 Response

null

Responses

Status Meaning Description Schema
200 OK Ok Inline

Response Schema

---

from widdershins.

botiapa avatar botiapa commented on July 17, 2024

This is still a problem for me. I'd be glad to post an example, but the one above me perfectly showcases the problem.

from widdershins.

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.