Skip to content

Instantly share code, notes, and snippets.

@ondrakoupil
Last active February 20, 2021 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ondrakoupil/aa986212d90f598cf96dbda01cdc1545 to your computer and use it in GitHub Desktop.
Save ondrakoupil/aa986212d90f598cf96dbda01cdc1545 to your computer and use it in GitHub Desktop.
ng-openapi-gen bug - multiple references leads to an error
---
openapi: 3.0.0
info:
title: Example
description: Example of bug in ng-openapi-gen
version: 0.0.1
paths:
/hello:
get:
operationId: hello
responses:
200:
content:
application/json:
schema:
type: object
properties:
firstProperty:
$ref: ref.yaml
secondProperty:
$ref: ref.yaml
thirdProperty:
$ref: ref.yaml
---
openapi: 3.0.0
info:
title: Example
description: Example of bug in ng-openapi-gen
version: 0.0.1
components:
schemas:
something:
$ref: ref.yaml
paths:
/hello:
get:
operationId: hello
responses:
200:
content:
application/json:
schema:
type: object
properties:
firstProperty:
$ref: ref.yaml
secondProperty:
$ref: ref.yaml
thirdProperty:
$ref: ref.yaml
---
openapi: 3.0.0
info:
title: Example
description: Example of bug in ng-openapi-gen
version: 0.0.1
paths:
/hello:
get:
operationId: hello
responses:
200:
content:
application/json:
schema:
type: object
properties:
firstProperty:
$ref: ref.yaml
secondProperty:
$ref: ref2.yaml
thirdProperty:
$ref: ref3.yaml
type: string
example: hello
type: string
example: hello
type: string
example: hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment