Apply suggestions from code review

Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
Vincent (Wen Yu) Ge
2024-03-22 13:36:18 -04:00
committed by GitHub
parent 6f37ce3369
commit 8dc69022b5

View File

@@ -360,8 +360,6 @@ export const generateExample = (schema: OpenAPIV3.SchemaObject, api: OpenAPIV3.D
if (property.type === 'array') {
// If it's an array type containing primatives
if (property.items?.type){
console.log(property.items?.type)
console.log(property)
return {
...carry,
[property.name]: property['x-example']
@@ -406,7 +404,6 @@ export const generateExample = (schema: OpenAPIV3.SchemaObject, api: OpenAPIV3.D
}
}
}
console.log(property)
return {
...carry,