mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 12:57:49 +00:00
Apply suggestions from code review
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
6f37ce3369
commit
8dc69022b5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user