Skip to content

Commit b66c760

Browse files
openapi: Add required Accept header for Compile API. (#160)
Signed-off-by: Philip Conrad <philip@chariot-chaser.net>
1 parent ce16bf9 commit b66c760

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

openapi/openapi.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ paths:
127127
post:
128128
parameters:
129129
- $ref: "#/components/parameters/policyPath"
130+
- $ref: "#/components/parameters/CompileAcceptTypes"
130131
- $ref: "#/components/parameters/GzipAcceptEncoding"
131132
- $ref: "#/components/parameters/GzipContentEncoding"
132133
- $ref: "#/components/parameters/pretty"
@@ -240,6 +241,24 @@ components:
240241
schema:
241242
type: string
242243
enum: [gzip]
244+
CompileAcceptTypes:
245+
name: Accept
246+
description: "Indicates the server should generate the target format of data filters."
247+
in: header
248+
required: true
249+
schema:
250+
type: string
251+
enum:
252+
- application/json
253+
- application/vnd.styra.multitarget+json
254+
- application/vnd.styra.ucast.all+json
255+
- application/vnd.styra.ucast.minimal+json
256+
- application/vnd.styra.ucast.linq+json
257+
- application/vnd.styra.ucast.prisma+json
258+
- application/vnd.styra.sql.sqlserver+json
259+
- application/vnd.styra.sql.mysql+json
260+
- application/vnd.styra.sql.postgresql+json
261+
- application/vnd.styra.sql.sqlite+json
243262
pretty:
244263
name: pretty
245264
description: If parameter is `true`, response will formatted for humans.

0 commit comments

Comments
 (0)