NAME

Modern::OpenAPI::Generator::Spec - Parsed OpenAPI document (YAML/JSON)

DESCRIPTION

Object holds the decoded spec in $spec->raw and answers questions about operations and metadata.

load

Class method. Reads a YAML or JSON OpenAPI file and returns a blessed instance.

raw

Accessor for the root hash reference of the document.

clone_with_mojo_to

Returns a deep-cloned hash with x-mojo-to set on each operation for Mojolicious::Plugin::OpenAPI.

openapi_version

Returns the openapi or swagger version string from the document.

title

Returns info.title or the string API.

operations

Returns an arrayref of operation hashrefs (method, path, operationId, parameters, response schema hints, etc.).