class

Polar::Generator

Inherits Reference < Object

Main generator class

Constants

GENERIC_TYPES = ["SystemEvent", "BenefitGrantWebhook", "ListResource", "WebhookPayload"]

Generic types that live in root Polar module, not Polar::Models

POLAR_API_URL = "https://api.polar.sh/openapi.json"
SKIP_SCHEMAS = ["HTTPValidationError", "ResourceNotFound", "NotPermitted", "Unauthorized", "BenefitGrantWebhook", "SystemEvent", "WebhookPayload"]

Schemas to skip (manually defined or using generics)

VERSION = "2.0.0"

Constructors

new(spec_url : String = POLAR_API_URL, output_dir : String = "src/polar")
Source

Instance methods

generate!
Source

Nested types