Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-78

Is org.apache.juneau.dto.swagger.SchemaInfo missing a $ref field?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.1.0
    • None
    • None

    Description

      According to
      https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schema-object
      we should be able to set $ref to another jsonschema.

      Here's one example
      https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/json/petstore.json#L55

      Do we need to add a String ref variable with appropriate serialization rules to preserve the $?

      I just noticed that using Swagger dto to hold my swagger when i access it I get back "schema": {}

      Attachments

        Activity

          People

            jamesbognar James Bognar
            steveblackmon Steve Blackmon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified