In reality, vendorExtensions are not parsed in any kind, and the runtime data-type is ObjectNode, which to be honest I have no idea how to render with jmustache.
On Friday, October 21, 2016 at 6:51:48 PM UTC+3, tony tam wrote: > > Take a look here: > > https://github.com/samskivert/jmustache#-first-and--last > > On Oct 20, 2016, at 11:09 PM, Alex Dobjanschi <alex.do...@gmail.com > <javascript:>> wrote: > > First of all, I'm not sure if this is a jmustache specific topic, but it > pretty tied to swagger as well :) > > Imagine there is a vendor extension for parameter, like this: > > parameters: > - name: param1 > type: string > x-encrypt-with: { > algorithm: 'sha1' > additionalData1: '256' > additionalModelName: 'param1' > } > > There is a vendor extension whose values I'd like to use in template, but > unfortunately, despite all my efforts, jmustache interprets > *x-encrypt-with* as an iterable, as far as I've seen, and goes through > all its values: > > {{#allParams}} > {{#vendorExtensions.x-encrypt-with}} > // Value: {{this}} > {{/vendorExtensions.x-encrypt-with}} > {{/allParams}} > > > The output is: > // Value: sha1 > // Value: 256 > // Value: param1 > > What I'd like to output is (do not iterate through Map but instead use a > keyed access): > // Value: sha1, 256, param1 > > Thanks! > > > > > -- > 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 swagger-swaggersocket+unsubscr...@googlegroups.com <javascript:>. > 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.