> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# bijection schema

> Import external schemas and report structural drift

## bijection schema

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
Import external schemas and report structural drift

Usage:
  bijection schema [flags]
  bijection schema [command]

Available Commands:
  capture-graphql Capture GraphQL introspection through an installed private connection
  diff            Report structural differences between two schema snapshots
  import          Generate native SDK validators from JSON Schema
  import-registry Capture an explicit Avro registry version and its references

Flags:
  -h, --help        help for schema
      --help-all    Show all commands and options, including administrative controls.
      --help-json   Print command input and output schemas as JSON without executing it.

Global Flags:
      --target string   Execution target: project/reference/live or project/reference/<branch>; private deployments use URL#live or URL#branch/<name>. Git navigation never changes this target.

Use "bijection schema [command] --help" for more information about a command.
```

## bijection schema capture-graphql

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
Capture GraphQL introspection through an installed private connection

Usage:
  bijection schema capture-graphql [flags]

Flags:
      --connection string   Installed connection with a declared GraphQL identity query
      --deployment string   Capture GraphQL schema on a specific deployment. Accepts:
                            • a deployment name (e.g. joyful-capybara-123)
                            • a deployment reference (e.g. dev/james, staging)
                            • dev (for your personal dev deployment)
                            • prod (for your project’s default production deployment).
                            You can also select deployments in other projects with project-slug:reference.
  -h, --help                help for capture-graphql
      --help-all            Show all commands and options, including administrative controls.
      --help-json           Print command input and output schemas as JSON without executing it.
      --output string       Create a new introspection capture without overwriting a file
      --url string          Capture GraphQL schema on a private deployment at this explicit origin.

Global Flags:
      --target string   Execution target: project/reference/live or project/reference/<branch>; private deployments use URL#live or URL#branch/<name>. Git navigation never changes this target.
```

## bijection schema diff

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
Report structural differences between two schema snapshots

Usage:
  bijection schema diff <before.json> <after.json> [flags]

Flags:
      --check       Exit with an error when any structural drift is present
  -h, --help        help for diff
      --help-all    Show all commands and options, including administrative controls.
      --help-json   Print command input and output schemas as JSON without executing it.

Global Flags:
      --target string   Execution target: project/reference/live or project/reference/<branch>; private deployments use URL#live or URL#branch/<name>. Git navigation never changes this target.
```

## bijection schema import

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
Import closed objects, records, arrays, scalar types, anyOf, scalar enum/const and local references. Unsupported validation keywords, JSON integers, recursive schemas and external references are refused. An OpenAPI document can be selected with --pointer. No network request or deployment occurs.

Usage:
  bijection schema import <schema.json> [flags]

Flags:
  -h, --help             help for import
      --help-all         Show all commands and options, including administrative controls.
      --help-json        Print command input and output schemas as JSON without executing it.
      --output string    Create a TypeScript module; an existing file is never overwritten
      --pointer string   Local JSON Pointer selecting a schema, for example /components/schemas/Customer

Global Flags:
      --target string   Execution target: project/reference/live or project/reference/<branch>; private deployments use URL#live or URL#branch/<name>. Git navigation never changes this target.
```

## bijection schema import-registry

```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
Capture an explicit Avro registry version and its references

Usage:
  bijection schema import-registry [flags]

Flags:
      --connection string   Private registry connection JSON: endpoint and optional token_env
  -h, --help                help for import-registry
      --help-all            Show all commands and options, including administrative controls.
      --help-json           Print command input and output schemas as JSON without executing it.
      --out string          New immutable capture directory
      --subject string      Exact registry subject
      --time-field string   Required long field holding event time
      --time-unit string    Exact event-time unit (seconds, milliseconds, microseconds) (default "milliseconds")
      --version string      Explicit positive subject version; latest is refused

Global Flags:
      --target string   Execution target: project/reference/live or project/reference/<branch>; private deployments use URL#live or URL#branch/<name>. Git navigation never changes this target.
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.