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 15:36:00 GMT

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

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

I'd be OK with either approach.

As a work-around until I'm able to rebase my services on a master that includes this change,
is there a recommended way for a class that extends org.apache.juneau.microservice.Resource
to supply an alternative method for responding to OPTIONS/*?

Basically I'd like to disable RestServletDefault.getOptions(RestRequest req) such that a call
to OPTIONS/* trigger my alternative method that returns my preferred POJO instead of a dto.swagger.Swagger


----
org.apache.juneau.rest.RestServletException: Problem occurred trying to serialize methods
on class org.apache.juneau.rest.RestContext, methods=['getOpenApi,OPTIONS,/*','getOptions,OPTIONS,/*']
Caused by: org.apache.juneau.rest.RestServletException: Duplicate Java methods assigned to
the same method/pattern:  'OPTIONS:/*'

> 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