swagger-blocks icon indicating copy to clipboard operation
swagger-blocks copied to clipboard

Trying to layout a request definition in swagger-blocks

Open bopritchard opened this issue 5 years ago • 1 comments

what would be the equivalent in swagger-blocks

extension:
  type: array
  items:
    oneOf:
      - $ref: '#/definitions/Race'
      - $ref: '#/definitions/Ethnicity'

I've tried

    property :extension do
      key :type, :array
      items do
        key :type, :object
        oneOf do
          key :'$ref', :Race
          key :'$ref', :Ethnicity
          key :'$ref', :Ethnicity
        end
      end
    end

but get the following exception

undefined method `oneOf' for #<Swagger::Blocks::Nodes::ItemsNode

bopritchard avatar Aug 20 '19 19:08 bopritchard

![build_a_mod_3](https://user-images.githubuse build_a_mod_2 custom_errordocs caching_fig1 build_a_mod_4 feather

rcontent.com/59726904/72142974-20929180-3353-11ea-9263-549d94645f1b.png) caching_fig1 syntax_rewriterule syntax_rewritecond up mod_filter_old caching_fig1 bal-man mod_filter_old filter_arch ssl_intro_fig3 feather bal-man custom_errordocs build_a_mod_4 mod_filter_new mod_rewrite_fig1 filter_arch tr left Screenshot_20200103-145305_Free Stuff reverse-proxy-arch mod_rewrite_fig2 mod_filter_new ssl_intro_fig1 build_a_mod_2 mod_rewrite_fig1 rewrite_process_uri bal-man-w bal-man-b down caching_fig1 ssl_intro_fig1 build_a_mod_3 ssl_intro_fig2 bal-man-w caching_fig1 tr

tanekz1 avatar Jan 10 '20 09:01 tanekz1