(definition: JSONSchema7)
| 172 | } |
| 173 | |
| 174 | function isStringEnumDefinition(definition: JSONSchema7): definition is JSONSchema7 & { enum: string[] } { |
| 175 | return Array.isArray(definition.enum) && definition.enum.every((value) => typeof value === "string"); |
| 176 | } |
| 177 | |
| 178 | function pushGoComment(lines: string[], text: string, indent = "", wrap = true): void { |
| 179 | lines.push(...goCommentLines(text, indent, wrap)); |
no outgoing calls
no test coverage detected
searching dependent graphs…