Generating description with $ref
See original GitHub issueHome:
type: object
properties:
home_address:
description: "its the home address"
$ref: '#/components/schemas/Address'
Office:
type: object
properties:
office_address:
description: "its the office address"
$ref: '#/components/schemas/Address'
This is a kind of swagger I want to generate with annotations, where I can have specific descriptions for home and office addresses.
Is there anyway swagger-ui will read this description for $ref?
https://github.com/swagger-api/swagger-editor/issues/1184#issuecomment-422044132
This is one of the solution I found but there is no way to generate it with annotations. Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Using $ref - Swagger
Local Reference – $ref: '#/definitions/myElement' # means go to the root of the current document and then find elements definitions and myElement one...
Read more >Swagger: Add description with ref - Stack Overflow
i took advantage over the "Extensions" property of schema. and managed to create a swagger JSON, with $ref and extended properties. var ...
Read more >Description is not allowed for elements containing $ref #1514
I know that specification says that when using $ref any other elements are ignored. So here a real life scenario. location: description: ...
Read more >Object.create() - JavaScript - MDN Web Docs
The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.
Read more >Refs and the DOM - React
Creating Refs. Refs are created using React.createRef() and attached to React elements via the ref attribute. Refs are commonly assigned to an instance ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi, should we open this issue again since the feature is now supported in OpenAPI 3.1.0?
It’s supported in OpenAPI 3.1.0 Reference: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject