Steve promises to work on the snippet scanner#94
Conversation
Adding a (temporary) trivial change, in order to create the PR. Will update the PR as actual work happens.
|
Starting a Pull Request for the changes I hope to make in the near future. The plan is to push any work to this PR as its done, so that the work-in-progress is visible. |
errors in the file that need addressing.
| summary: Provide URL from which to pull sources for scanning. | ||
| operationId: uploadSources | ||
| parameters: | ||
| - name: purl |
There was a problem hiding this comment.
Would it make sense to have a location instead of purl?
we might allow a file:// or s3:// or all sorts of locations
| schema: | ||
| $ref: '#/components/schemas/scanRequestId' | ||
| '403': | ||
| description: Not authorized |
There was a problem hiding this comment.
probaly we should add a code for "not accessible" concerning the location
| $ref: '#/components/schemas/sourceBundle' | ||
| responses: | ||
| '200': | ||
| description: Successful operation |
There was a problem hiding this comment.
cocnering the receipt of the code and the request has been queued
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/scanRequestId' |
There was a problem hiding this comment.
should return scanResult. We should add a status in the result so that it could be still "in progress" or "failed"
| '403': | ||
| description: Not authorized | ||
| '405': | ||
| description: Validation exception, invalid document |
| type: string | ||
| matchedComponent: | ||
| schema: | ||
| $ref: '#/components/schema/purl' |
There was a problem hiding this comment.
add scanResult:
type: array
properties:
snippetMatch
Adding a (temporary) trivial change, in order to create the PR. Will update the PR as actual work happens.