Redocly/redoc
Ver no GitHubOpenAPIParser's merge allOf doesn't merge examples
Open
#1.200 aberto em 9 de mar. de 2020
Type: Enhancementhelp wantedopenapi
Métricas do repositório
- Stars
- (21.877 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
I have the following response:
"200" : {
"description" : "The request has succeeded.",
"content" : {
"application/json" : {
"schema" : {
"type" : "object",
"properties" : {
"statistics" : {
"allOf" : [ {
"$ref" : "#/components/schemas/pageStatistics"
}, {
"example" : {
"currentPage" : 1,
"pageSize" : 1
}
} ]
}
}
}
}
}
}
statistics uses a schema which contains a sample response, but it gets overwritten by example and it shall contain only two properties. It renders correctly in SwaggerUI, but not with Redoc as seen in the attached image.
