Module: JsonSchemaView::JsonWorldExtensions::AdditionalProperties

Extended by:
ActiveSupport::Concern
Included in:
Schema202012
Defined in:
lib/json_schema_view/json_world_extensions/additional_properties.rb

Overview

Define JSON Schema’s additionalProperties property.

Examples:

class Zoo
  include JsonWorld::DSL
  include JsonSchemaView::JsonWorldExtensions::MapType::DSL

  additional_properties(false)
  property(
    :dogMap,
    type: map_type(Dog),
  )
end

See Also: