docs: fix typos in code comments (#9841)
Signed-off-by: careworry <worrycare@outlook.com>
This commit is contained in:
@@ -219,7 +219,7 @@ export const sampleFromSchemaGeneric = (
|
||||
|
||||
// if json just return
|
||||
if (!respectXML) {
|
||||
// spacial case yaml parser can not know about
|
||||
// special case yaml parser can not know about
|
||||
if (typeof sample === "number" && type === "string") {
|
||||
return `${sample}`
|
||||
}
|
||||
|
||||
@@ -380,7 +380,7 @@ export const sampleFromSchemaGeneric = (schema, config={}, exampleOverride = und
|
||||
|
||||
// if json just return
|
||||
if(!respectXML) {
|
||||
// spacial case yaml parser can not know about
|
||||
// special case yaml parser can not know about
|
||||
if(typeof sample === "number" && type === "string") {
|
||||
return `${sample}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user