Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
This report presents the forensic synthetic code analysis of swagger-api/swagger-core, a Java project with 7,530 GitHub stars. SynthScan v2.0 examined 124,941 lines of code across 1212 source files, recording 199 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 18.9 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 199 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java | 748 | @io.swagger.v3.oas.annotations.Operation(tags = "/receiver/rest") | CODE |
| CRITICAL | …wagger/v3/jaxrs2/resources/model/MultipleSub2Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …wagger/v3/jaxrs2/resources/model/MultipleSub1Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …wagger/v3/jaxrs2/resources/model/MultipleBaseBean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …s2/petstore/responses/MethodArrayResponseResource.java | 21 | arraySchema = @io.swagger.v3.oas.annotations.media.Schema(description = "Array description"), | CODE |
| CRITICAL | …s2/petstore/responses/MethodArrayResponseResource.java | 23 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …gger/v3/jaxrs2/integration/JaxrsAnnotationScanner.java | 95 | classes = new HashSet<>(scanResult.getClassesWithAnnotation(javax.ws.rs.Path.class.getName()).loadClasses()) | CODE |
| CRITICAL | …3/plugins/gradle/resources/model/MultipleSub2Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …3/plugins/gradle/resources/model/MultipleSub1Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …3/plugins/gradle/resources/model/MultipleBaseBean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …ava/io/swagger/v3/java17/resolving/JavaRecordTest.java | 63 | @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Schema Test") | CODE |
| CRITICAL⚡ | …ava/io/swagger/v3/java17/resolving/JavaRecordTest.java | 65 | @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Schema on fields processing in Java Re | CODE |
| CRITICAL⚡ | …ava/io/swagger/v3/java17/resolving/JavaRecordTest.java | 70 | @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Bean Validation Test") | CODE |
| CRITICAL | …er/v3/java17/resolving/v31/ModelResolverOAS31Test.java | 47 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …er/v3/java17/resolving/v31/ModelResolverOAS31Test.java | 59 | contains = @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …er/v3/java17/resolving/v31/ModelResolverOAS31Test.java | 62 | unevaluatedItems = @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …er/v3/java17/resolving/v31/ModelResolverOAS31Test.java | 66 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …er/v3/java17/resolving/v31/ModelResolverOAS31Test.java | 72 | @io.swagger.v3.oas.annotations.media.Schema(types = { | CODE |
| CRITICAL | …io/swagger/v3/java17/resources/JavaRecordResource.java | 4 | @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Java Record Processing") String test, | CODE |
| CRITICAL | …java17/resources/TestControllerWithRecordResource.java | 18 | content = @Content(mediaType = "application/json",schema = @io.swagger.v3.oas.annotations.media.Sche | CODE |
| CRITICAL | …/v3/plugin/maven/resources/model/MultipleSub2Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …/v3/plugin/maven/resources/model/MultipleSub1Bean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL | …/v3/plugin/maven/resources/model/MultipleBaseBean.java | 3 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 97 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class))) | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 101 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class, fo | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 105 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 109 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = DummyClass.cla | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 116 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", example = "5 lacs per annum") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 119 | @io.swagger.v3.oas.annotations.media.Schema(type = "number", example = "10") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 122 | @io.swagger.v3.oas.annotations.media.Schema(type = "integer", example = "5") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 125 | @io.swagger.v3.oas.annotations.media.Schema(example = "10.00") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 128 | @io.swagger.v3.oas.annotations.media.Schema(example = "42", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 131 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "10.00") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 134 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "42", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 137 | @io.swagger.v3.oas.annotations.media.Schema(examples = {"10.00", "20.50"}) | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 140 | @io.swagger.v3.oas.annotations.media.Schema(examples = {"42"}, type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 143 | @io.swagger.v3.oas.annotations.media.Schema(example = "true") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 146 | @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "boolean") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 149 | @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 287 | @io.swagger.v3.oas.annotations.media.Schema(type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 290 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", defaultValue = "null") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 293 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", nullable = true, defaultValue = "null") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 854 | @io.swagger.v3.oas.annotations.media.Schema(description = "type-level description") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 858 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "myDefault") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 863 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 867 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "typeDefault") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 871 | @io.swagger.v3.oas.annotations.media.Schema(description = "field-level description") | CODE |
| CRITICAL | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 373 | io.swagger.v3.oas.annotations.media.Schema nullableDefaultSchema = new io.swagger.v3.oas.annotations.media.Schem | CODE |
| CRITICAL | …gger/v3/core/resolving/JodaLocalDateConverterTest.java | 37 | @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model") | CODE |
| CRITICAL | …gger/v3/core/resolving/JodaLocalDateConverterTest.java | 40 | @io.swagger.v3.oas.annotations.media.Schema(description = "creation localDate", required = true) | CODE |
| CRITICAL | …gger/v3/core/resolving/JodaLocalDateConverterTest.java | 55 | @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model") | CODE |
| CRITICAL | …c/test/java/io/swagger/v3/core/resolving/JodaTest.java | 43 | @io.swagger.v3.oas.annotations.media.Schema(description = "Name!") | CODE |
| CRITICAL | …c/test/java/io/swagger/v3/core/resolving/JodaTest.java | 46 | @io.swagger.v3.oas.annotations.media.Schema(description = "creation timestamp", required = true) | CODE |
| CRITICAL | …est/java/io/swagger/v3/core/resolving/XMLInfoTest.java | 56 | @io.swagger.v3.oas.annotations.media.Schema(description = "DESC") | CODE |
| CRITICAL⚡ | …c/test/java/io/swagger/v3/core/resolving/EnumTest.java | 261 | @io.swagger.v3.oas.annotations.media.Schema(enumAsRef = true, description = "Property description", maximum = "1 | CODE |
| CRITICAL⚡ | …c/test/java/io/swagger/v3/core/resolving/EnumTest.java | 268 | @io.swagger.v3.oas.annotations.media.Schema(description = "Enum description") | CODE |
| CRITICAL⚡ | …c/test/java/io/swagger/v3/core/resolving/EnumTest.java | 277 | @io.swagger.v3.oas.annotations.media.ArraySchema(schema = @io.swagger.v3.oas.annotations.media.Schema(enumAsRef | CODE |
| CRITICAL⚡ | …c/test/java/io/swagger/v3/core/resolving/EnumTest.java | 284 | @io.swagger.v3.oas.annotations.media.Schema(description = "Enum description") | CODE |
| CRITICAL⚡ | …c/test/java/io/swagger/v3/core/resolving/EnumTest.java | 294 | @io.swagger.v3.oas.annotations.media.Schema(description = "Plain enum property") | CODE |
| CRITICAL | …/java/io/swagger/v3/core/resolving/Ticket3365Test.java | 55 | @io.swagger.v3.oas.annotations.media.Schema( | CODE |
| 120 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …est/resources/comprehensiveOAS31/paths/user-paths.yaml | 2 | # This file contains user-related paths referenced by the root file | COMMENT |
| MEDIUM | …test/resources/comprehensiveOAS31/paths/pet-paths.yaml | 2 | # This file contains pet-related paths referenced by the root file | COMMENT |
| MEDIUM | …st/resources/comprehensiveOAS31/paths/order-paths.yaml | 2 | # This file contains order-related paths referenced by the root file | COMMENT |
| MEDIUM | …resources/comprehensiveOAS31/schemas/user-schemas.yaml | 2 | # This file contains user-related schemas referenced by the root file | COMMENT |
| MEDIUM | …/resources/comprehensiveOAS31/schemas/pet-schemas.yaml | 2 | # This file contains pet-related schemas referenced by the root file | COMMENT |
| MEDIUM | …esources/comprehensiveOAS31/schemas/order-schemas.yaml | 2 | # This file contains order-related schemas referenced by the root file | COMMENT |
| MEDIUM | …sources/comprehensiveOAS31/schemas/common-schemas.yaml | 2 | # This file contains common schemas referenced by the root file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/test/resources/integration/openapi-configuration.json | 10 | "description": "This is a TEST AAsample server Petstore server. You can find out more about Swagger at [htt | CODE |
| MEDIUM | …core/src/test/resources/specFiles/compositionTest.json | 4 | "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://sw | CODE |
| MEDIUM | …wagger-core/src/test/resources/specFiles/noModels.json | 4 | "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://sw | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …esources/comprehensiveOAS31/comprehensive-openapi.yaml | 2 | # This file demonstrates a comprehensive OpenAPI 3.1 document with JSON Schema 2020/12 features | COMMENT |
| MEDIUM | …/resources/comprehensiveOAS31/schemas/json-schema.yaml | 2 | # This file demonstrates a comprehensive JSON Schema 2020/12 document | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CI/ghApiClient.py | 30 | except Exception: | CODE |
| LOW | CI/ghApiClient.py | 56 | except Exception: | CODE |
| MEDIUM | CI/ghApiClient.py | 14 | def readUrl(name): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CI/test.py | 8 | CODE | |
| LOW | CI/releaseNotes.py | 8 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java | 1192 | " example: Lorem ipsum dolor set\n"; | CODE |
| LOW | …io/swagger/v3/jaxrs2/resources/Ticket2806Resource.java | 30 | example = "Lorem ipsum dolor set" | CODE |