-
Notifications
You must be signed in to change notification settings - Fork 8
/
validations.yaml
38 lines (38 loc) · 1.21 KB
/
validations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
openapi: 3.0.0
info:
title: Validations
version: v1
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://{hostname}/edgeworkers/v1
x-akamai:
auth-type: EDGE_GRID
file-path: validations.yaml
paths:
/validations:
post:
operationId: post-validations
summary: Validate an EdgeWorkers code bundle
tags:
- Validations
description: |
Return a list of errors and warnings containing details on how to fix your code bundle. See [Validation types](ref:validation-types). In order to run this operation you need to provide an EdgeWorkers code bundle as a GZIP binary file in the request body, with a `Content-Type` of `application/gzip`.
requestBody:
required: true
content:
application/gzip:
schema:
type: string
format: binary
responses:
200:
description: |
Provides details for an EdgeWorkers code bundle validation.
content:
application/json:
example:
$ref: examples/validations-post-200.json
schema:
$ref: schemas/validations-post-200.yaml