Skip to content

Commit

Permalink
Add missing 404 response
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Jul 8, 2024
1 parent b0b9af2 commit 65e5826
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion typespec/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ namespace Service {
} | {
@statusCode _: 400;
@body response: InvalidDocumentResponse | Error;
};
} | ErrorResponse<404>;

enum Validator {
AvalonMediaSystemCSVManifest: "avalon",
Expand Down
16 changes: 16 additions & 0 deletions typespec/tsp-output/@typespec/openapi3/openapi.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,22 @@ paths:
anyOf:
- $ref: '#/components/schemas/V2Beta.Validate.InvalidDocumentResponse'
- $ref: '#/components/schemas/Error'
'404':
description: The server cannot find the requested resource.
content:
application/json:
schema:
type: object
required:
- error
- message
properties:
error:
type: boolean
default: true
message:
type: string
description: ''
requestBody:
required: true
content:
Expand Down

0 comments on commit 65e5826

Please sign in to comment.