Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to layout a request definition in swagger-blocks #127

Open
bopritchard opened this issue Aug 20, 2019 · 1 comment
Open

Trying to layout a request definition in swagger-blocks #127

bopritchard opened this issue Aug 20, 2019 · 1 comment

Comments

@bopritchard
Copy link

bopritchard commented Aug 20, 2019

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

@tanekz1
Copy link

tanekz1 commented Jan 10, 2020

![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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants