Module: PairKit::JsonSchema::Dsl::StructuralPartialDsl

Included in:
CommonPartialDsl
Defined in:
lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb

Instance Method Summary collapse

Instance Method Details

#_else(&block) ⇒ Object Also known as: else_check



40
41
42
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 40

def _else(&block)
  use_applicator('else', &block)
end

#_if(&block) ⇒ Object Also known as: if_fits



34
35
36
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 34

def _if(&block)
  use_applicator('if', &block)
end

#_not(&block) ⇒ Object Also known as: must_not_be, prohibit



46
47
48
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 46

def _not(&block)
  use_applicator('not', &block)
end

#_then(&block) ⇒ Object Also known as: then_check



28
29
30
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 28

def _then(&block)
  use_applicator('then', &block)
end

#all_of(&block) ⇒ Object Also known as: must_be, and



21
22
23
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 21

def all_of(&block)
  append_applicator('allOf', &block)
end

#any_of(&block) ⇒ Object Also known as: may_be, or



7
8
9
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 7

def any_of(&block)
  append_applicator('anyOf', &block)
end

#one_of(&block) ⇒ Object Also known as: may_be_once, xor



14
15
16
# File 'lib/pair_kit/json_schema/dsl/partials/structural_partial_dsl.rb', line 14

def one_of(&block)
  append_applicator('anyOf', &block)
end