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

openapi: Extend the /v1/compile API #108

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
17 changes: 15 additions & 2 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,17 +428,30 @@ components:
description: The query to partially evaluate and compile.
CompileOptions:
type: object
description: Additional options to use during partial evaluation. Only disableInlining option is supported.
description: Additional options to use during partial evaluation. Only the disableInlining option is currently supported in OPA. Enterprise OPA may support additional options.
additionalProperties: true
properties:
disableInlining:
type: array
dialect: string
targetDialects:
type: array
description: The output targets for partial evaluation. Different targets will have different constraints. Populating this parameter will override whatever target (if any) was selected in request's Accept header.
items:
type: string
enum:
- ucast
- ucast+prisma
- ucast+linq
- sql
philipaconrad marked this conversation as resolved.
Show resolved Hide resolved
- sql+mysql
- sql+postgres
philipaconrad marked this conversation as resolved.
Show resolved Hide resolved
targetSQLTableMappings:
type: object
CompileUnknowns:
type: array
description: The terms to treat as unknown during partial evaluation.
items:
type: string
default: ["input"]
CompileResultJSON:
type: object
Expand Down