class WarpEngine::Configuration::SchemaDSL

An OpenAPI object schema for one additional resource entry. The names are the attributes’ own; the schema carries them in camelCase, as AdditionalResource#serialize does. null: true lets a property be null, its enum included.

api_schema do
  string :locale, :title
  string :og_type, null: true, enum: %w[website article]
end

Each JSON type in TYPES is a method taking one or more property names and the null, enum and extra schema options; it raises ArgumentError without a name.