Skip to content

Conversation

stephenkilbaneadi
Copy link

Adding a (temporary) trivial change, in order to create the PR. Will update the PR as actual work happens.

Adding a (temporary) trivial change, in order to create the PR. Will update the PR as actual work happens.
@stephenkilbaneadi
Copy link
Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probaly we should add a code for "not accessible" concerning the location

$ref: '#/components/schemas/sourceBundle'
responses:
'200':
description: Successful operation
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cocnering the receipt of the code and the request has been queued

content:
application/json:
schema:
$ref: '#/components/schemas/scanRequestId'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invalid ID

type: string
matchedComponent:
schema:
$ref: '#/components/schema/purl'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add scanResult:
type: array
properties:
snippetMatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants