juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Blackmon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JUNEAU-78) Is org.apache.juneau.dto.swagger.SchemaInfo missing a $ref field?
Date Fri, 12 Jan 2018 17:09:01 GMT

    [ https://issues.apache.org/jira/browse/JUNEAU-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324248#comment-16324248
] 

Steve Blackmon commented on JUNEAU-78:
--------------------------------------

I answered my own question - this remaps the default Swagger endpoint to OTHER and replaces
the method that services OPTIONS.  I didn't see an HttpMethodName enum value for 'none'

  @RestMethod(
    name = HttpMethodName.OTHER,
    path = "/*"
  )
  override def getOptions(req: RestRequest): Swagger = {
    return null
  }

  @RestMethod(
    defaultRequestHeaders = Array("Accept: openapi+json"),
    name = HttpMethodName.OPTIONS,
    path = "/*"
  )
  def getOpenApi(req: RestRequest): OpenApi = openapi

> Is org.apache.juneau.dto.swagger.SchemaInfo missing a $ref field?
> -----------------------------------------------------------------
>
>                 Key: JUNEAU-78
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-78
>             Project: Juneau
>          Issue Type: Bug
>            Reporter: Steve Blackmon
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> 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": {}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message