Giter Site home page Giter Site logo

Comments (6)

jeremyfiel avatar jeremyfiel commented on September 24, 2024 1

@monica-m-ps
this is similar to your last post #2431

The oneOf and description are siblings and are not allowed in OAS 3.0.x. If you want to use both properties you need to modify the schema to use allOf to encapsulate them.

  customerEmail:
    nullable: true
    allOf:
      - oneOf:
        - $ref: ./PaymentIntentConfigCustomerEmail.yaml
      - description:   
        $ref: ../../../prose/parameters/customerEmail.md

from redoc.

romanpryshliak avatar romanpryshliak commented on September 24, 2024

Hello @monica-m-ps,

I noticed that within the snippets provided, two properties customerEmail and collectionRequired have descriptions matching what's shown in the screenshots. I have also noticed that the paymentIntentConfigCustomerEmail schema lacks a description in both the snippet and the screenshot.

Based on this, could you please specify which description exactly is missing after the file is downloaded? If there's publicly accessible documentation showcasing this issue, could you kindly provide a link to it?

from redoc.

jeremyfiel avatar jeremyfiel commented on September 24, 2024

@monica-m-ps can this be closed?

from redoc.

monica-m-ps avatar monica-m-ps commented on September 24, 2024

Yes please. Sorry there are still discussions going on within the team here.
@romanpryshliak : This is currently live on docs.dojo.tech/api.

@jeremyfiel Thanks for this solution. If I'll need to ask anything else, I'll post it again. Thank you!

from redoc.

jeremyfiel avatar jeremyfiel commented on September 24, 2024

@monica-m-ps Are you still having some issue with the description populating? I don't see it on the link you provided.

I think I misunderstood your usage of oneOf. You should be able to get the description without the oneOf.

 customerEmail:
    nullable: true
    allOf:
      - $ref: ./PaymentIntentConfigCustomerEmail.yaml
      - description:   
          $ref: ../../../prose/parameters/customerEmail.md

from redoc.

monica-m-ps avatar monica-m-ps commented on September 24, 2024

Descriptions populated are fine. When you download the JSON, that's when some descriptions appear to be empty.

from redoc.

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.