You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How are you generating YAML? If you're using one of the SwaggerYard::Swagger or OpenAPI objects, may I suggest modifying your code to call the #to_h method first like so:
My config.
`SwaggerYard.configure do |config|
config.title = 'Endpoint reference'
config.description = 'Below is a list of the endpoints in the API along with examples and parameter documentation.'
config.api_version = "0.1"
The write to yaml is broken.
generates:
....
tags:
description: &9 !ruby/string:YARD::Docstring
str: Some descr
tags:
tag_name: resource
text: Phenotypes foobar
name:
types:
object: &2 !ruby/object:YARD::CodeObjects::ClassObject
children: !ruby/array:YARD::CodeObjects::CodeObjectList
... 1000+ lines of stuff :( ...
components:
schemas:
...
the json writer generates:
...
"tags": [
{
"name": "Phenotypes foobar",
"description": "Some descr"
}
],
"components": {
...
The tags seems to be the only block that is broken, the other blocks are as expected.
The text was updated successfully, but these errors were encountered: