Skip to content

Instantly share code, notes, and snippets.

@amakhrov
Last active January 28, 2020 22:25
Show Gist options
  • Save amakhrov/c2956d36e599d9833a40309e86490484 to your computer and use it in GitHub Desktop.
Save amakhrov/c2956d36e599d9833a40309e86490484 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
version: '1.0'
title: Example API
schemes:
- http
paths:
/myendpoint1:
get:
summary: Endpoint
responses:
200:
description: Response
schema:
$ref: '#/definitions/Response1'
definitions:
Response:
type: object
properties:
prop_name:
description: Response code
type: string
enum: [ Capital, UPPER, lower, snake_case, 'illegal+id' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment