Skip to content

Generated document having self referencing model does not have nested structure #27

Open
@AshKemp23

Description

@AshKemp23

@JaredCE Let us say a model has the following structure:
data: {
id: number,
name: string;
subRows: {
id: number;
name: string;
}[]
But once it is generated,

"subRows": {
"type": "array",
"items": {
"description": "This was found to be a circular reference and has been closed off to avoid repetitive processing. This closure was made by json-schema-for-openapi v0.4.1 - please open an issue at: https://github.com/JaredCE/json-schema-to-openAPI-schema-object/issues"
}
},

I think instead of this description, the document should display the nested structure as that of the the parent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions