Skip to content

Instantly share code, notes, and snippets.

@cou929
Created February 23, 2023 15:21
Show Gist options
  • Save cou929/9d0402301d9be9aefb6ce3a5bac0d3b4 to your computer and use it in GitHub Desktop.
Save cou929/9d0402301d9be9aefb6ce3a5bac0d3b4 to your computer and use it in GitHub Desktop.
unexpected behavior of swagger-cli
post:
responses:
201:
description: test
content:
application/json:
schema:
$ref: ref2.yaml
description: the order of this description directive changes between versions
openapi: 3.0.3
info:
title: Test
version: 1.0.0
paths:
/foo:
$ref: foo.yaml
/bar:
$ref: bar.yaml
post:
responses:
201:
$ref: ref1.yaml
description: test
content:
application/json:
schema:
type: object
required:
- test_param
properties:
test_param:
$ref: ref2.yaml
type: object
required:
- test
properties:
test:
type: integer
example: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment