Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API
This report summarizes scanner evidence for swagger-api/swagger-core, a Java project with 7,528 GitHub stars. SynthScan examined 127,134 lines of code across 1228 source files, recording 207 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 19.4 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 14 finding(s).
Are imports declared and package/API names verified? 190 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 207 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 207 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| 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 | 98 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class))) | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 102 | @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 | 106 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 110 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = DummyClass.cla | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 117 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", example = "5 lacs per annum") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 120 | @io.swagger.v3.oas.annotations.media.Schema(type = "number", example = "10") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 123 | @io.swagger.v3.oas.annotations.media.Schema(type = "integer", example = "5") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 126 | @io.swagger.v3.oas.annotations.media.Schema(example = "10.00") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 129 | @io.swagger.v3.oas.annotations.media.Schema(example = "42", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 132 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "10.00") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 135 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "42", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 138 | @io.swagger.v3.oas.annotations.media.Schema(examples = {"10.00", "20.50"}) | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 141 | @io.swagger.v3.oas.annotations.media.Schema(examples = {"42"}, type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 144 | @io.swagger.v3.oas.annotations.media.Schema(example = "true") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 147 | @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "boolean") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 150 | @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 288 | @io.swagger.v3.oas.annotations.media.Schema(type = "string") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 291 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", defaultValue = "null") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 294 | @io.swagger.v3.oas.annotations.media.Schema(type = "string", nullable = true, defaultValue = "null") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 855 | @io.swagger.v3.oas.annotations.media.Schema(description = "type-level description") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 859 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "myDefault") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 864 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 868 | @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "typeDefault") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 872 | @io.swagger.v3.oas.annotations.media.Schema(description = "field-level description") | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 977 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(allowableValues = {"foo", "bar" | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 981 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, | CODE |
| CRITICAL⚡ | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 985 | @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Foo.class))) | CODE |
| CRITICAL | …java/io/swagger/v3/core/util/AnnotationsUtilsTest.java | 374 | 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 |
| 128 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 |