acolyte-codegen
Safe HaskellNone
LanguageGHC2024

Acolyte.Codegen.Parse

Description

Parse OpenAPI 3.x and Swagger 2.0 specs into the shared IR.

Auto-detects the version from the "openapi" or "swagger" field.

Synopsis

Documentation

parseSpec :: Value -> Either ParseError ApiIR Source #

Parse a JSON Value into ApiIR. Auto-detects Swagger 2.0 vs OpenAPI 3.x.

data ParseError Source #

Errors that can occur when parsing an OpenAPI or Swagger spec.

Instances

Instances details
Show ParseError Source # 
Instance details

Defined in Acolyte.Codegen.Parse