AI Slop Code RIsk Monitor

swagger-api/swagger-core

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

19.4 Elevated pattern signal View on GitHub

Maintenance and Governance Review

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.

19.4
Adjusted Signal
19.4
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
7.5K
Stars
Java
Language
127.1K
Lines of Code
1.2K
Files
207
Pattern Hits
2026-10-12
Scan Date
0.15
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 1.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 14 finding(s).

Hallucinated Dependency & Supply Chain Risk 61.5/100 · HIGH

Are imports declared and package/API names verified? 190 finding(s).

Agent Over-Engineering Ratio 0.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 3 finding(s).

PR Review Velocity Impact 53.1/100 · HIGH

Which changes need focused human review? 207 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 188HIGH 0MEDIUM 13LOW 6

Directory Score Breakdown

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.

Pattern Findings

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.

Hallucination Indicators188 hits · 2422 pts
SeverityFileLineSnippetContext
CRITICAL…rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java748 @io.swagger.v3.oas.annotations.Operation(tags = "/receiver/rest")CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…wagger/v3/jaxrs2/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…s2/petstore/responses/MethodArrayResponseResource.java21 arraySchema = @io.swagger.v3.oas.annotations.media.Schema(description = "Array description"),CODE
CRITICAL…s2/petstore/responses/MethodArrayResponseResource.java23 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…gger/v3/jaxrs2/integration/JaxrsAnnotationScanner.java95 classes = new HashSet<>(scanResult.getClassesWithAnnotation(javax.ws.rs.Path.class.getName()).loadClasses())CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…3/plugins/gradle/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java63 @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Schema Test")CODE
CRITICAL⚡…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java65 @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Schema on fields processing in Java ReCODE
CRITICAL⚡…ava/io/swagger/v3/java17/resolving/JavaRecordTest.java70 @io.swagger.v3.oas.annotations.media.Schema(description = "Java Record with Bean Validation Test")CODE
CRITICAL…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java47 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java59 contains = @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java62 unevaluatedItems = @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java66 @io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…er/v3/java17/resolving/v31/ModelResolverOAS31Test.java72 @io.swagger.v3.oas.annotations.media.Schema(types = {CODE
CRITICAL…io/swagger/v3/java17/resources/JavaRecordResource.java4 @io.swagger.v3.oas.annotations.media.Schema(description = "Testing of Java Record Processing") String test,CODE
CRITICAL…java17/resources/TestControllerWithRecordResource.java18 content = @Content(mediaType = "application/json",schema = @io.swagger.v3.oas.annotations.media.ScheCODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleSub2Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleSub1Bean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL…/v3/plugin/maven/resources/model/MultipleBaseBean.java3@io.swagger.v3.oas.annotations.media.Schema(CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java98 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class)))CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java102 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Byte.class, foCODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java106 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java110 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = DummyClass.claCODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java117 @io.swagger.v3.oas.annotations.media.Schema(type = "string", example = "5 lacs per annum")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java120 @io.swagger.v3.oas.annotations.media.Schema(type = "number", example = "10")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java123 @io.swagger.v3.oas.annotations.media.Schema(type = "integer", example = "5")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java126 @io.swagger.v3.oas.annotations.media.Schema(example = "10.00")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java129 @io.swagger.v3.oas.annotations.media.Schema(example = "42", type = "string")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java132 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "10.00")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java135 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "42", type = "string")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java138 @io.swagger.v3.oas.annotations.media.Schema(examples = {"10.00", "20.50"})CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java141 @io.swagger.v3.oas.annotations.media.Schema(examples = {"42"}, type = "string")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java144 @io.swagger.v3.oas.annotations.media.Schema(example = "true")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java147 @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "boolean")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java150 @io.swagger.v3.oas.annotations.media.Schema(example = "true", type = "string")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java288 @io.swagger.v3.oas.annotations.media.Schema(type = "string")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java291 @io.swagger.v3.oas.annotations.media.Schema(type = "string", defaultValue = "null")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java294 @io.swagger.v3.oas.annotations.media.Schema(type = "string", nullable = true, defaultValue = "null")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java855 @io.swagger.v3.oas.annotations.media.Schema(description = "type-level description")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java859 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "myDefault")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java864 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java868 @io.swagger.v3.oas.annotations.media.Schema(defaultValue = "typeDefault")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java872 @io.swagger.v3.oas.annotations.media.Schema(description = "field-level description")CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java977 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(allowableValues = {"foo", "bar"CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java981 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = String.class, CODE
CRITICAL⚡…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java985 @ApiResponse(content = @Content(schema = @io.swagger.v3.oas.annotations.media.Schema(implementation = Foo.class)))CODE
CRITICAL…java/io/swagger/v3/core/util/AnnotationsUtilsTest.java374 io.swagger.v3.oas.annotations.media.Schema nullableDefaultSchema = new io.swagger.v3.oas.annotations.media.SchemCODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java37 @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model")CODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java40 @io.swagger.v3.oas.annotations.media.Schema(description = "creation localDate", required = true)CODE
CRITICAL…gger/v3/core/resolving/JodaLocalDateConverterTest.java55 @io.swagger.v3.oas.annotations.media.Schema(description = "name of the model")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/JodaTest.java43 @io.swagger.v3.oas.annotations.media.Schema(description = "Name!")CODE
CRITICAL…c/test/java/io/swagger/v3/core/resolving/JodaTest.java46 @io.swagger.v3.oas.annotations.media.Schema(description = "creation timestamp", required = true)CODE
CRITICAL…est/java/io/swagger/v3/core/resolving/XMLInfoTest.java56 @io.swagger.v3.oas.annotations.media.Schema(description = "DESC")CODE
CRITICAL⚡…c/test/java/io/swagger/v3/core/resolving/EnumTest.java261 @io.swagger.v3.oas.annotations.media.Schema(enumAsRef = true, description = "Property description", maximum = "1CODE
CRITICAL⚡…c/test/java/io/swagger/v3/core/resolving/EnumTest.java268 @io.swagger.v3.oas.annotations.media.Schema(description = "Enum description")CODE
CRITICAL⚡…c/test/java/io/swagger/v3/core/resolving/EnumTest.java277 @io.swagger.v3.oas.annotations.media.ArraySchema(schema = @io.swagger.v3.oas.annotations.media.Schema(enumAsRef CODE
128 more matches not shown…
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUM…est/resources/comprehensiveOAS31/paths/user-paths.yaml2# This file contains user-related paths referenced by the root fileCOMMENT
MEDIUM…test/resources/comprehensiveOAS31/paths/pet-paths.yaml2# This file contains pet-related paths referenced by the root fileCOMMENT
MEDIUM…st/resources/comprehensiveOAS31/paths/order-paths.yaml2# This file contains order-related paths referenced by the root fileCOMMENT
MEDIUM…resources/comprehensiveOAS31/schemas/user-schemas.yaml2# This file contains user-related schemas referenced by the root fileCOMMENT
MEDIUM…/resources/comprehensiveOAS31/schemas/pet-schemas.yaml2# This file contains pet-related schemas referenced by the root fileCOMMENT
MEDIUM…esources/comprehensiveOAS31/schemas/order-schemas.yaml2# This file contains order-related schemas referenced by the root fileCOMMENT
MEDIUM…sources/comprehensiveOAS31/schemas/common-schemas.yaml2# This file contains common schemas referenced by the root fileCOMMENT
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…/test/resources/integration/openapi-configuration.json10 "description": "This is a TEST AAsample server Petstore server. You can find out more about Swagger at [httCODE
MEDIUM…core/src/test/resources/specFiles/compositionTest.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swCODE
MEDIUM…wagger-core/src/test/resources/specFiles/noModels.json4 "description": "This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swCODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM…esources/comprehensiveOAS31/comprehensive-openapi.yaml2# This file demonstrates a comprehensive OpenAPI 3.1 document with JSON Schema 2020/12 featuresCOMMENT
MEDIUM…/resources/comprehensiveOAS31/schemas/json-schema.yaml2# This file demonstrates a comprehensive JSON Schema 2020/12 documentCOMMENT
Excessive Try-Catch Wrapping3 hits · 4 pts
SeverityFileLineSnippetContext
LOWCI/ghApiClient.py30 except Exception:CODE
LOWCI/ghApiClient.py56 except Exception:CODE
MEDIUMCI/ghApiClient.py14def readUrl(name):CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWCI/test.py8CODE
LOWCI/releaseNotes.py8CODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOW…rs2/src/test/java/io/swagger/v3/jaxrs2/ReaderTest.java1192 " example: Lorem ipsum dolor set\n";CODE
LOW…io/swagger/v3/jaxrs2/resources/Ticket2806Resource.java30 example = "Lorem ipsum dolor set"CODE