Skip to content

Instantly share code, notes, and snippets.

@z0mt3c
Created December 9, 2014 09:49
Show Gist options
  • Save z0mt3c/a6cf91b4d7886455dd9a to your computer and use it in GitHub Desktop.
Save z0mt3c/a6cf91b4d7886455dd9a to your computer and use it in GitHub Desktop.
swagger-array-of-strings
---
swagger: "2.0"
host: "localhost:8000"
schemes:
- "http"
paths:
/simple/test:
post:
tags:
- "api"
parameters:
- name: "List"
required: true
type: "array"
items:
type: "string"
in: "body"
consumes:
- "application/json"
responses:
default: {}
produces:
- "application/json"
definitions: {}
info:
title: "Test"
description: "Test"
version: "1.0"
@z0mt3c
Copy link
Author

z0mt3c commented Dec 9, 2014

---
  swagger: "2.0"
  host: "localhost:8000"
  schemes: 
    - "http"
  paths: 
    /simple/test: 
      post: 
        tags: 
          - "api"
        parameters: 
          - name: "List"
            required: true
            schema: 
              ref: "#/definitions/Test"
            in: "body"
        consumes: 
          - "application/json"
        responses: 
          default: {}
        produces: 
          - "application/json"
  definitions:
    Test: 
      type: "array"
      items: 
        type: "string"
  info: 
    title: "Test"
    description: "Test"
    version: "1.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment