OpenAPI Parser Component

A native Delphi component that parses OpenAPI 3.x and Swagger specifications, giving you programmatic access to every endpoint, schema, and security definition.

TsgcOpenAPIParser

Drop the parser component onto your form or create it in code to load and inspect any API specification.

Load Specifications

Load from file, URL, or string. Supports JSON and YAML formats. Automatically detects Swagger 1.x/2.x and converts to the OpenAPI 3.x internal model.

Browse the API Model

Access paths, operations, parameters, request/response bodies, schemas, and security schemes through a strongly-typed object model.

Generate Code

Feed the parsed model to the code generator to produce Pascal units, or inspect endpoints programmatically for custom tooling and automation.

Parser Details

Reference Resolution

Automatically resolves $ref pointers, including external file references and circular references, producing a fully dereferenced model.

Schema Composition

Handles allOf, oneOf, and anyOf composition keywords, discriminator mappings, and polymorphic schemas.

Specification Validation

Reports structural errors, missing required fields, and invalid type references with line-level detail for fast debugging.

Try the Parser

Download the free trial and parse your first OpenAPI specification in minutes.