Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure correct OpenAPI 3.1.0 spec. #646

Merged
merged 30 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
54ffcf8
Added Python and Ruby spec validators.
dblock Oct 25, 2024
92e711e
Add empty descriptions where missing and remove descriptions next to …
dblock Nov 4, 2024
fffaae3
Replaced the validator compatible with OpenAPI 3.1.
dblock Nov 4, 2024
63051b4
Fixed incorrect style.
dblock Nov 4, 2024
2dafa40
Added missing require.
dblock Nov 4, 2024
5736735
Fix: schema null is not supported.
dblock Nov 4, 2024
8c42278
Removed unused required property.
dblock Nov 4, 2024
c0ea5ff
Fix: added missing schema.
dblock Nov 4, 2024
d8ffd3f
Fix: removed incorrect defaults.
dblock Nov 4, 2024
2b63431
Fix: added missing required.
dblock Nov 4, 2024
beb6eeb
Fix: removed incorrect required.
dblock Nov 4, 2024
fc4730c
Removed incorrect externalDocs.
dblock Nov 4, 2024
04716ca
Document the ruby spec validator.
dblock Nov 4, 2024
7bf5b00
Fix: removed redundant content types.
dblock Nov 4, 2024
a4b83f5
Improve displaying of errors.
dblock Nov 4, 2024
6610faa
Normalize keys to be compatible with OpenAPI 3.1.
dblock Nov 4, 2024
5485529
Removed superseeded operations that have unresolved parameters.
dblock Nov 4, 2024
f3759a1
Fix: don't reduce error payload, allows to verify schema.
dblock Nov 5, 2024
732fde0
Fix: flow framework schema tests.
dblock Nov 5, 2024
4abc6be
Fix: if no decision is made there's no weight ranking.
dblock Nov 5, 2024
bc24479
Fix: wrap indexing errors.
dblock Nov 5, 2024
52783ee
Added verbose logging of the story being evaluated.
dblock Nov 5, 2024
635e180
Fix: security API test error responses.
dblock Nov 5, 2024
7b0c299
Fix: duration ref.
dblock Nov 5, 2024
0a15d96
Fix typo in property.
dblock Nov 5, 2024
8e3e4c5
Fix superseeded operation parameters.
dblock Nov 5, 2024
acf7788
Fix: neural search error response.
dblock Nov 5, 2024
50c3258
Normalize fields.
dblock Nov 5, 2024
d1a1bac
Re-added default values into the schema.
dblock Nov 5, 2024
359e6f8
Disallowed characters are replaced with ___.
dblock Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: removed redundant content types.
Signed-off-by: dblock <dblock@amazon.com>
dblock committed Nov 4, 2024
commit 7bf5b006999f2a7e232ca401a7f9c1b3209a9cfa
202 changes: 88 additions & 114 deletions spec/schemas/flow_framework.errors.yaml
Original file line number Diff line number Diff line change
@@ -7,65 +7,53 @@ paths: {}
components:
schemas:
FlowFrameworkAPIDisabledError:
content:
application/json:
type: object
properties:
error:
type: string
example: This API is disabled. To enable it, set [flow_framework.enabled] to true.
status:
type: integer
type: object
properties:
error:
type: string
example: This API is disabled. To enable it, set [flow_framework.enabled] to true.
status:
type: integer
InvalidParameterError:
content:
application/json:
type: object
properties:
error:
type: string
example: Only the parameters [param1, param2] are permitted unless the provision parameter is set to true.
status:
type: integer
type: object
properties:
error:
type: string
example: Only the parameters [param1, param2] are permitted unless the provision parameter is set to true.
status:
type: integer
ConflictError:
content:
application/json:
type: object
properties:
error:
type: string
example: You cannot use both the 'provision_workflow' and 'update_workflow_fields' parameters in the same request.
status:
type: integer
type: object
properties:
error:
type: string
example: You cannot use both the 'provision_workflow' and 'update_workflow_fields' parameters in the same request.
status:
type: integer
MissingParameterError:
content:
application/json:
type: object
properties:
error:
type: string
example: You cannot use the 'reprovision_workflow' parameter to create a new template.
status:
type: integer
type: object
properties:
error:
type: string
example: You cannot use the 'reprovision_workflow' parameter to create a new template.
status:
type: integer
ParameterConflictError:
content:
application/json:
type: object
properties:
error:
type: string
example: You cannot use the 'reprovision_workflow' and 'use_case' parameters in the same request.
status:
type: integer
type: object
properties:
error:
type: string
example: You cannot use the 'reprovision_workflow' and 'use_case' parameters in the same request.
status:
type: integer
WorkFlowIdNullError:
content:
application/json:
type: object
properties:
error:
type: string
example: Workflow ID can not be null
status:
type: integer
type: object
properties:
error:
type: string
example: Workflow ID can not be null
status:
type: integer
DuplicateKeyError:
type: object
properties:
@@ -96,78 +84,64 @@ components:
description: HTTP status code for the error.
example: 400
WorkflowSaveError:
content:
application/json:
type: object
properties:
error:
type: string
example: Failed to save workflow state
status:
type: integer
type: object
properties:
error:
type: string
example: Failed to save workflow state
status:
type: integer
MaxWorkflowsLimitError:
content:
application/json:
type: object
properties:
error:
type: string
example: Maximum workflows limit reached 50
code:
type: integer
type: object
properties:
error:
type: string
example: Maximum workflows limit reached 50
code:
type: integer
TemplateNameRequiredError:
type: object
properties:
error:
type: string
description: Error message when the template name is missing.
TemplateNotFoundError:
content:
application/json:
type: object
properties:
error:
type: string
example: Failed to retrieve template (12345) from global context.
code:
type: integer
type: object
properties:
error:
type: string
example: Failed to retrieve template (12345) from global context.
code:
type: integer
InvalidTemplateVersionError:
content:
application/json:
type: object
properties:
error:
type: string
description: Error message when the template version is invalid or missing.
example: Unable to parse field [version] in a version object.
type: object
properties:
error:
type: string
description: Error message when the template version is invalid or missing.
example: Unable to parse field [version] in a version object.
UnsupportedFieldUpdateError:
content:
application/json:
type: object
properties:
error:
type: string
description: Error message when trying to update an unsupported field in a template.
example: You can not update the field [fieldName] without updating the whole template.
type: object
properties:
error:
type: string
description: Error message when trying to update an unsupported field in a template.
example: You can not update the field [fieldName] without updating the whole template.
WorkflowParsingError:
content:
application/json:
type: object
properties:
error:
type: string
description: Error message when workflow parsing fails.
example: Unable to parse field [workflow] in a template object.
type: object
properties:
error:
type: string
description: Error message when workflow parsing fails.
example: Unable to parse field [workflow] in a template object.
WorkflowStepsRetrieveError:
content:
application/json:
type: object
properties:
error:
type: string
example: Failed to retrieve workflow step json.
code:
type: integer
type: object
properties:
error:
type: string
example: Failed to retrieve workflow step json.
code:
type: integer
DeprovisioningError:
type: object
properties: