Cool thanks! Yeah I just posted a snippet of the spec. Let me double check,
I used the online editor initially.
- Amar

On Wed, May 3, 2017 at 4:22 PM, Ron Ratovsky <[email protected]> wrote:

> They should be supported by the codegen, yes.
>
>
>
> However, your spec is not a valid one. I’m not exactly sure what you’re
> trying to do there because it’s partial, but I recommend you use our online
> editor to make sure it’s valid is you write it.
>
>
>
>
>
> *From: *<[email protected]> on behalf of amar
> padmanabhan <[email protected]>
> *Reply-To: *"[email protected]" <
> [email protected]>
> *Date: *Wednesday, 3 May 2017 at 15:25
> *To: *Swagger <[email protected]>
> *Subject: *Using RefParameter in param
>
>
>
> Hi all,
>
> I am trying to reuse a definition and added it to the parameters, this
> causes an issue in the codegen side. Wondering if what I am doing is legal
> which is to share a definition on the ReusableParam side.
>
> Also are ReusableParams supported for CodeGen?  Looking at
> public CodegenParameter fromParameter(Parameter param, Set<String>
> imports) {
>
> it looks like if param instanceof RefParameter is not handled?
>
> Thanks
>
> Amar
>
> /networks/{tenant_network_id}:
>
>     get:
>
>       summary: Retrieve Network Configs
>
>       tags:
>
>         - Networks
>
>       parameters:
>
>         - in: path
>
>           name: tenant_network_id
>
>           description: Network ID
>
>           required: true
>
>           $ref: '#/definitions/network_id'
>
>       responses:
>
>         200:
>
>           description: Network Configs
>
>           name: network_record
>
>           schema:
>
>             $ref: '#/definitions/network_record'
>
>         default:
>
>           $ref: "#/responses/UnexpectedError"
>
>
>
>
>
> Fails with error:
>
> [main] ERROR io.swagger.codegen.Codegen - Could not process operation:
>
>   Tag: Networks
>
>   Operation: null
>
>   Resource: get /networks/{tenant_network_id}
>
>   Definitions: {log_level=io.swagger.models.ModelImpl@92faeecf,
> network_id=io.swagger.models.ModelImpl@6b0f60b1,
> enodebd_config=io.swagger.models.ModelImpl@c36cbf14,
> network_enodebd_config=io.swagger.models.ModelImpl@e06bf483,
> mobilityd_config=io.swagger.models.ModelImpl@55d5985,
> mme_config=io.swagger.models.ModelImpl@87eca79c,
> network_mme_config=io.swagger.models.ModelImpl@3e1f21d4,
> control_proxy_config=io.swagger.models.ModelImpl@6c4336ec,
> controllerd_config=io.swagger.models.ModelImpl@6f0f03de,
> magmad_config=io.swagger.models.ModelImpl@cc912af0,
> metricsd_config=io.swagger.models.ModelImpl@7c0d6eb4,
> spgw_config=io.swagger.models.ModelImpl@7c0d6eb4, subscriber_db_config=io.
> swagger.models.ModelImpl@f598f277, network_record=io.swagger.
> models.ModelImpl@7f3c2b8, gateway_id=io.swagger.models.ModelImpl@4d043a45,
> hw_gateway_id=io.swagger.models.ModelImpl@4ba76cd,
> mutable_gateway_record=io.swagger.models.ModelImpl@977a9e84,
> access_gateway_record=io.swagger.models.ModelImpl@1e8b44d8,
> gateway_configs=io.swagger.models.ModelImpl@e4d24ce1,
> error=io.swagger.models.ModelImpl@7b1be154, subscriber_id=io.swagger.
> models.ModelImpl@99b488e7, subscriber_id_set=io.swagger.
> models.ArrayModel@fddb2387, lte_subscription=io.swagger.
> models.ModelImpl@113de764, subscriber=io.swagger.models.ModelImpl@b9a94056
> }
>
>   Exception: io.swagger.models.parameters.RefParameter cannot be cast to
> io.swagger.models.parameters.BodyParameter
>
> --
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to