Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

generateJsonSchema

Generates a JSON Schema from an example JSON object (at most 1 MB) with OpenAI. Requires ROLE_WRITER on the tenant in X-Pyck-Tenant-Id.

Served by: management

Name Type
jsonData String!

GenerateJsonSchemaResponse!

Generates a JSON Schema from an example JSON data object.

mutation GenerateJsonSchema($jsonData: String!) {
generateJsonSchema(jsonData: $jsonData) {
jsonSchema
}
}

Variables

{
"jsonData": "{\"name\":\"Acme Corp\",\"tier\":3,\"active\":true}"
}